MDL-54715 core_question: fixed bug when importing questions with tags

Thanks to WangYang for original patch
This commit is contained in:
Marina Glancy 2016-05-24 14:22:41 +08:00
parent 2c952b2f38
commit 3e9437f412

View File

@ -426,7 +426,7 @@ class qformat_default {
$result = question_bank::get_qtype($question->qtype)->save_question_options($question);
if (isset($question->tags)) {
core_tag_tag::set_item_tags('core_question', 'question', $question->context, $question->id, $question->tags);
core_tag_tag::set_item_tags('core_question', 'question', $question->id, $question->context, $question->tags);
}
if (!empty($result->error)) {