]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10365 removing userid - not used in grade_grades_text
authorskodak <skodak>
Fri, 10 Aug 2007 21:12:32 +0000 (21:12 +0000)
committerskodak <skodak>
Fri, 10 Aug 2007 21:12:32 +0000 (21:12 +0000)
backup/backuplib.php
backup/restorelib.php

index 221d846939ee0c709c94b92530d832b5bfd03cba..5b892f192db2973d29b4aa382ad62a0c3143396d 100644 (file)
                 fwrite ($bf,full_tag("TIMEMODIFIED",7,false,$ch->timemodified));
                 fwrite ($bf,full_tag("LOGGEDUSER",7,false,$ch->loggeduser));
                 fwrite ($bf,full_tag("GRADEID",7,false,$ch->gradeid));
-                fwrite ($bf,full_tag("USERID",7,false,$ch->userid));
                 fwrite ($bf,full_tag("INFORMATION",7,false,$ch->information));
                 fwrite ($bf,full_tag("INFORMATIONFORMAT",7,false,$ch->informationformat));
                 fwrite ($bf,full_tag("FEEDBACK",7,false,$ch->feedback));
index 21bbcd2b04f788d86d5f66fb32f9ba7761d6aa50..9dbf023814c8a3481f90e31ad6b9a2ef4da76e91 100644 (file)
                                 continue; // grade not being restore, possibly because grade item is not restored
                             }
                             $oldobj = backup_getid($restore->backup_unique_code,"user", backup_todb($info['GRADE_TEXT_HISTORY']['#']['USERID']['0']['#']));
-                            $dbrec->userid = $oldobj->new_id;
                             $dbrec->information = backup_todb($info['GRADE_TEXT_HISTORY']['#']['INFORMATION']['0']['#']);
                             $dbrec->informationformat = backup_todb($info['GRADE_TEXT_HISTORY']['#']['INFORMATIONFORMAT']['0']['#']);
                             $dbrec->feedback = backup_todb($info['GRADE_TEXT_HISTORY']['#']['FEEDBACK']['0']['#']);