mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 10:58:38 +01:00
Merge branch 'MDL-37540-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
c0038fbe5b
@ -359,6 +359,16 @@ class assign_submission_file extends assign_submission_plugin {
|
||||
'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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user