Skip to content
Browse files

Merge branch 'MDL-37540-24' of git://github.com/damyon/moodle into MO…

…ODLE_24_STABLE
  • Loading branch information...
2 parents 0e5bf3c + 36d7050 commit 3a6152ceac2b04b66fad7485c36e0cf8ed37abc6 @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
@@ -317,6 +317,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 3a6152c

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