Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
01d29b3
)
MDL-37540 Assignment upgrade: Upgrade setting "Hide description before due date"
author
Damyon Wiese
<damyon@moodle.com>
Thu, 17 Jan 2013 03:44:57 +0000
(11:44 +0800)
committer
Damyon Wiese
<damyon@moodle.com>
Thu, 17 Jan 2013 03:44:57 +0000
(11:44 +0800)
Advanced upload of files has this setting which is stored in var3.
mod/assign/submission/file/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/assign/submission/file/locallib.php
b/mod/assign/submission/file/locallib.php
index
ad61326
..
97ff754
100644
(file)
--- a/
mod/assign/submission/file/locallib.php
+++ b/
mod/assign/submission/file/locallib.php
@@
-357,6
+357,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;
}
}