mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-61514 Quiz: Make sure tag id is int when being saved as json
This commit is contained in:
parent
1287039e62
commit
2481a022d0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user