From 8942ac90ffe5adeb4f07785b069bf431332127ec Mon Sep 17 00:00:00 2001 From: skodak <skodak> Date: Thu, 2 Aug 2007 11:22:13 +0000 Subject: [PATCH] MDL-10105 fixed cm idnumber in gradebook upgrade --- lib/db/upgradelib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db/upgradelib.php b/lib/db/upgradelib.php index 7930150f82..1b8aeeb802 100644 --- a/lib/db/upgradelib.php +++ b/lib/db/upgradelib.php @@ -132,6 +132,7 @@ function upgrade_18_gradebook($courseid) { $item->itemtype = 'mod'; $item->itemmodule = $olditem->modname; $item->iteminstance = $olditem->cminstance; + $item->idnumber = $olditem->cmidnumber; $item->itemname = NULL; $item->itemnumber = 0; $item->gradetype = GRADE_TYPE_VALUE; -- 2.39.5