Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a6ac0c
)
MDL-28103 when handling questions that have been deleted from the question bank,...
author
Tim Hunt
<T.J.Hunt@open.ac.uk>
Wed, 29 Jun 2011 23:36:45 +0000
(
00:36
+0100)
committer
Tim Hunt
<T.J.Hunt@open.ac.uk>
Fri, 1 Jul 2011 16:13:47 +0000
(17:13 +0100)
question/engine/upgrade/behaviourconverters.php
patch
|
blob
|
blame
|
history
diff --git
a/question/engine/upgrade/behaviourconverters.php
b/question/engine/upgrade/behaviourconverters.php
index
0553b4e
..
881036e
100644
(file)
--- a/
question/engine/upgrade/behaviourconverters.php
+++ b/
question/engine/upgrade/behaviourconverters.php
@@
-263,6
+263,12
@@
abstract class question_behaviour_attempt_updater {
*/
protected function make_qtype_updater() {
global $CFG;
+
+ if ($this->question->qtype == 'deleted') {
+ return new question_deleted_question_attempt_updater(
+ $this, $this->question, $this->logger, $this->qeupdater);
+ }
+
$path = $CFG->dirroot . '/question/type/' . $this->question->qtype . '/db/upgradelib.php';
if (!is_readable($path)) {
throw new coding_exception("Question type {$this->question->qtype}