Skip to content

Commit

Permalink
MDL-27733 workshop: keep the phase deadlines during the 1.9 => 2.0 up…
Browse files Browse the repository at this point in the history
…grade
  • Loading branch information
mudrd8mz committed Jun 6, 2011
1 parent a56c68e commit ce8157e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mod/workshop/db/upgradelib.php
Expand Up @@ -210,6 +210,14 @@ function workshop_upgrade_transform_instance(stdClass $old) {
$new->strategy = 'rubric';
break;
}
if ($old->submissionstart < $old->submissionend) {
$new->submissionstart = $old->submissionstart;
$new->submissionend = $old->submissionend;
}
if ($old->assessmentstart < $old->assessmentend) {
$new->assessmentstart = $old->assessmentstart;
$new->assessmentend = $old->assessmentend;
}

return $new;
}
Expand Down

0 comments on commit ce8157e

Please sign in to comment.