]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11510, missing gradebook fields in backup
authortoyomoyo <toyomoyo>
Wed, 10 Oct 2007 07:25:41 +0000 (07:25 +0000)
committertoyomoyo <toyomoyo>
Wed, 10 Oct 2007 07:25:41 +0000 (07:25 +0000)
backup/backuplib.php

index d09477e354390e0c2e8ba960d125c588557d5a8d..baba9672922b27960e03bd967f28d34ecfb09325 100644 (file)
             foreach ($chs as $ch) {
                 fwrite ($bf,start_tag("GRADE_CATEGORIES_HISTORY",6,true));
                 fwrite ($bf,full_tag("ID",7,false,$ch->id));
-                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("ACTION",7,false,$ch->action));
+                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("SOURCE",7,false,$ch->source));
                 fwrite ($bf,full_tag("TIMEMODIFIED",7,false,$ch->timemodified));
                 fwrite ($bf,full_tag("LOGGEDUSER",7,false,$ch->loggeduser));
             foreach ($chs as $ch) {
                 fwrite ($bf,start_tag("GRADE_GRADES_HISTORY",6,true));
                 fwrite ($bf,full_tag("ID",7,false,$ch->id));
-                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("ACTION",7,false,$ch->action));
+                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("SOURCE",7,false,$ch->source));
                 fwrite ($bf,full_tag("TIMEMODIFIED",7,false,$ch->timemodified));
                 fwrite ($bf,full_tag("LOGGEDUSER",7,false,$ch->loggeduser));
                 fwrite ($bf,full_tag("RAWGRADE",7,false,$ch->rawgrade));
                 fwrite ($bf,full_tag("RAWGRADEMAX",7,false,$ch->rawgrademax));
                 fwrite ($bf,full_tag("RAWGRADEMIN",7,false,$ch->rawgrademin));
+                fwrite ($bf,full_tag("RAWSCALEID",7,false,$ch->rawscaleid));
                 fwrite ($bf,full_tag("USERMODIFIED",7,false,$ch->usermodified));
                 fwrite ($bf,full_tag("FINALGRADE",7,false,$ch->finalgrade));
                 fwrite ($bf,full_tag("HIDDEN",7,false,$ch->hidden));
             foreach ($chs as $ch) {
                 fwrite ($bf,start_tag("GRADE_ITEM_HISTORY",6,true));
                 fwrite ($bf,full_tag("ID",7,false,$ch->id));
-                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("ACTION",7,false,$ch->action));
+                fwrite ($bf,full_tag("OLDID",7,false,$ch->oldid));
                 fwrite ($bf,full_tag("SOURCE",7,false,$ch->source));
                 fwrite ($bf,full_tag("TIMEMODIFIED",7,false,$ch->timemodified));
                 fwrite ($bf,full_tag("LOGGEDUSER",7,false,$ch->loggeduser));
                 fwrite ($bf,full_tag("PLUSFACTOR",7,false,$ch->plusfactor));
                 fwrite ($bf,full_tag("AGGREGATIONCOEF",7,false,$ch->aggregationcoef));
                 fwrite ($bf,full_tag("SORTORDER",7,false,$ch->sortorder));
-                fwrite ($bf,full_tag("DISPLAY",7,false,$ch->plusfactor));
-                fwrite ($bf,full_tag("DECIMALS",7,false,$ch->plusfactor));
+                fwrite ($bf,full_tag("DISPLAY",7,false,$ch->display));
+                fwrite ($bf,full_tag("DECIMALS",7,false,$ch->decimals));
                 fwrite ($bf,full_tag("HIDDEN",7,false,$ch->hidden));
                 fwrite ($bf,full_tag("LOCKED",7,false,$ch->locked));
                 fwrite ($bf,full_tag("LOCKTIME",7,false,$ch->locktime));