mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-54715 core_question: fixed bug when importing questions with tags
Thanks to WangYang for original patch
This commit is contained in:
parent
2c952b2f38
commit
3e9437f412
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user