Permalink
Browse files

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

  • Loading branch information...
danpoltawski committed Apr 30, 2013
2 parents e0b3f5f + 18de52d commit 7a286a0d6d49fc5eb641108ba0902307f648b214
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/assign/locallib.php
View
@@ -516,7 +516,7 @@ public function add_instance(stdClass $formdata, $callplugins) {
$update->courseid = $formdata->course;
$update->intro = $formdata->intro;
$update->introformat = $formdata->introformat;
- $update->alwaysshowdescription = $formdata->alwaysshowdescription;
+ $update->alwaysshowdescription = !empty($formdata->alwaysshowdescription);
$update->submissiondrafts = $formdata->submissiondrafts;
$update->requiresubmissionstatement = $formdata->requiresubmissionstatement;
$update->sendnotifications = $formdata->sendnotifications;
@@ -837,7 +837,7 @@ public function update_instance($formdata) {
$update->course = $formdata->course;
$update->intro = $formdata->intro;
$update->introformat = $formdata->introformat;
- $update->alwaysshowdescription = $formdata->alwaysshowdescription;
+ $update->alwaysshowdescription = !empty($formdata->alwaysshowdescription);
$update->submissiondrafts = $formdata->submissiondrafts;
$update->requiresubmissionstatement = $formdata->requiresubmissionstatement;
$update->sendnotifications = $formdata->sendnotifications;

0 comments on commit 7a286a0

Please sign in to comment.