]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19213 testing ifthe wizardpage allows editng the tags
authorpichetp <pichetp>
Thu, 21 May 2009 12:19:45 +0000 (12:19 +0000)
committerpichetp <pichetp>
Thu, 21 May 2009 12:19:45 +0000 (12:19 +0000)
question/question.php

index 9148d1a952c8664898d4dc438f3cef25f36e5e6f..bfaf0e28113f428ccd033980d617832a48a58e27 100644 (file)
@@ -205,7 +205,8 @@ if ($mform->is_cancelled()){
     }
 
     $question = $QTYPES[$question->qtype]->save_question($question, $fromform, $COURSE, $wizardnow, true);
-    if (!empty($CFG->usetags)) {
+    // a wizardpage from multipe pages questiontype like calculated may not allow editing the question tags 
+    if (!empty($CFG->usetags) && isset($fromform->tags)) {
         require_once($CFG->dirroot.'/tag/lib.php');
         tag_set('question', $question->id, $fromform->tags);
     }