Skip to content
Browse files

Merge branch 'MDL-37540-master' of git://github.com/damyon/moodle

  • Loading branch information...
2 parents 5d4183b + f531ca7 commit c0038fbe5be9122aecddcc67a86706b91adc501d @nebgor nebgor committed Jan 22, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 mod/assign/submission/file/locallib.php
View
10 mod/assign/submission/file/locallib.php
@@ -359,6 +359,16 @@ public function upgrade_settings(context $oldcontext, stdClass $oldassignment, &
'submissiondrafts',
$oldassignment->var4,
array('id'=>$this->assignment->get_instance()->id));
+
+ // Convert advanced file upload "hide description before due date" setting.
+ $alwaysshow = 0;
+ if (!$oldassignment->var3) {
+ $alwaysshow = 1;
+ }
+ $DB->set_field('assign',
+ 'alwaysshowdescription',
+ $alwaysshow,
+ array('id'=>$this->assignment->get_instance()->id));
return true;
}
}

0 comments on commit c0038fb

Please sign in to comment.
Something went wrong with that request. Please try again.