MDL-61514 Quiz: Make sure tag id is int when being saved as json

This commit is contained in:
Shamim Rezaie 2018-03-11 17:08:24 +11:00
parent 1287039e62
commit 2481a022d0

View File

@ -2456,7 +2456,7 @@ function quiz_build_random_question_tag_json($tagrecords) {
];
} else if ($tag = core_tag_tag::get_by_name(0, $tagrecord->name, 'id, name')) {
$tags[] = [
'id' => $tag->id,
'id' => (int)$tag->id,
'name' => $tagrecord->name
];
} else {