Permalink
Browse files

Bug solved restoring in existing course.

  • Loading branch information...
1 parent 59728e8 commit c05d9c3ee87ea43f8648492ad7cf7c3b9f2e63ad stronk7 committed Jun 12, 2003
Showing with 7 additions and 0 deletions.
  1. +7 −0 backup/restorelib.php
View
@@ -402,6 +402,13 @@ function restore_create_sections($restore,$xml_file) {
if ($status) {
$rec->id = $newid;
$rec->sequence = $sequence;
+ //Unset other fields before update (we don't want them)
+ //Only need id and sequence !! Previously, existing bug
+ //because update without addslashes in summary
+ unset($rec->course);
+ unset($rec->section);
+ unset($rec->summary);
+ unset($rec->visible);
$status = update_record("course_sections",$rec);
}
}

0 comments on commit c05d9c3

Please sign in to comment.