mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-63284 question: Moving questions with tags disabled bug fix
This commit is contained in:
parent
68fd8d8bdf
commit
08fe534986
@ -560,7 +560,7 @@ function question_move_question_tags_to_new_context(array $questions, context $n
|
||||
$questionstagobjects = core_tag_tag::get_items_tags('core_question', 'question', $questionids);
|
||||
|
||||
foreach ($questions as $question) {
|
||||
$tagobjects = $questionstagobjects[$question->id];
|
||||
$tagobjects = $questionstagobjects[$question->id] ?? [];
|
||||
|
||||
foreach ($tagobjects as $tagobject) {
|
||||
$tagid = $tagobject->taginstanceid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user