mirror of
https://github.com/moodle/moodle.git
synced 2025-04-30 13:28:28 +02:00
MDL-19213 testing ifthe wizardpage allows editng the tags
This commit is contained in:
parent
ad3a4aa67f
commit
3058e79d22
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user