Permalink
Browse files

Merge branch 'MDL-27733-workshop-deadlines_20_STABLE' of git://github…

….com/mudrd8mz/moodle into MOODLE_20_STABLE
  • Loading branch information...
2 parents edb8d49 + c33e534 commit ece057943d1fcab25c61619c36e8861b4615a266 Sam Hemelryk committed Jun 7, 2011
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 ece0579

Please sign in to comment.