Skip to content
Permalink
Browse files

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

  • Loading branch information...
Aparup Banerjee
Aparup Banerjee committed Jan 22, 2013
2 parents 5d4183b + f531ca7 commit c0038fbe5be9122aecddcc67a86706b91adc501d
Showing with 10 additions and 0 deletions.
  1. +10 −0 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.
You can’t perform that action at this time.