From: pichetp Date: Thu, 21 May 2009 12:19:45 +0000 (+0000) Subject: MDL-19213 testing ifthe wizardpage allows editng the tags X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3058e79d224092fe6ec97bc8693a49e89ef8b161;p=moodle.git MDL-19213 testing ifthe wizardpage allows editng the tags --- diff --git a/question/question.php b/question/question.php index 9148d1a952..bfaf0e2811 100644 --- a/question/question.php +++ b/question/question.php @@ -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); }