merged fix for MDL-8645, assignment due dates not written into db

This commit is contained in:
toyomoyo 2007-02-28 03:26:35 +00:00
parent 0f467340a6
commit 8509c33345

View File

@ -501,21 +501,6 @@ class assignment_base {
function update_instance($assignment) {
$assignment->timemodified = time();
if (empty($assignment->dueenable)) {
$assignment->timedue = 0;
$assignment->preventlate = 0;
} else {
$assignment->timedue = make_timestamp($assignment->dueyear, $assignment->duemonth,
$assignment->dueday, $assignment->duehour,
$assignment->dueminute);
}
if (empty($assignment->availableenable)) {
$assignment->timeavailable = 0;
} else {
$assignment->timeavailable = make_timestamp($assignment->availableyear, $assignment->availablemonth,
$assignment->availableday, $assignment->availablehour,
$assignment->availableminute);
}
$assignment->id = $assignment->instance;