Permalink
Browse files

MDL-27733 workshop: keep the phase deadlines during the 1.9 => 2.0 up…

…grade
  • Loading branch information...
mudrd8mz committed Jun 6, 2011
1 parent dba2410 commit c33e534dce071f0499d24ce3fa6f83573b15bd26
Showing with 8 additions and 0 deletions.
  1. +8 −0 mod/workshop/db/upgradelib.php
@@ -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;
}

0 comments on commit c33e534

Please sign in to comment.