Bug solved restoring in existing course.

This commit is contained in:
stronk7 2003-06-12 22:30:20 +00:00
parent 59728e8d4a
commit c05d9c3ee8

View File

@ -402,6 +402,13 @@
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);
}
}