Skip to content

Commit

Permalink
MDL-54715 core_question: fixed bug when importing questions with tags
Browse files Browse the repository at this point in the history
Thanks to WangYang for original patch
  • Loading branch information
marinaglancy committed May 24, 2016
1 parent 2c952b2 commit 3e9437f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion question/format.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function importprocess($category) {
$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)) {
Expand Down

0 comments on commit 3e9437f

Please sign in to comment.