-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
4.0
When doing a test upgrade, during the call to upgrade_migrate_question_table() in upgradelib.php, we saw hundreds of the following error:
Notice: Undefined property: stdClass::$name in /var/www/other/major/lib/db/upgradelib.php on line 1363
|
The upgrade step has this code in it:
$tags = $DB->get_records('quiz_slot_tags', ['slotid' => $quizslot->id]); |
$tagstrings = []; |
foreach ($tags as $tag) { |
$tagstrings [] = "{$tag->id},{$tag->name}"; |
}
|
But the problem is that the column name is tagname, not name. So I'm pretty sure it should be:
$tagstrings [] = "{$tag->id},{$tag->tagname}"; |
I'm not sure this is actual dataloss, since I assume the tagname is just duplicated from the tags table, but I'm not sure why it is here, so I might be wrong on that.