Permalink
Browse files

Merge branch 'MDL-38713-24' of git://github.com/danpoltawski/moodle i…

…nto MOODLE_24_STABLE
  • Loading branch information...
2 parents f034c23 + 85c361d commit 0c61dbecf7cf78f64d989380c27356ac039b0173 @damyon damyon committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/modedit.php
View
@@ -413,6 +413,7 @@
$newcm->module = $fromform->module;
$newcm->instance = 0; // not known yet, will be updated later (this is similar to restore code)
$newcm->visible = $fromform->visible;
+ $newcm->visibleold = $fromform->visible;
$newcm->groupmode = $fromform->groupmode;
$newcm->groupingid = $fromform->groupingid;
$newcm->groupmembersonly = $fromform->groupmembersonly;
@@ -480,7 +481,6 @@
// make sure visibility is set correctly (in particular in calendar)
// note: allow them to set it even without moodle/course:activityvisibility
set_coursemodule_visible($fromform->coursemodule, $fromform->visible);
- $DB->set_field('course_modules', 'visibleold', 1, array('id' => $fromform->coursemodule));
if (isset($fromform->cmidnumber)) { //label
// set cm idnumber - uniqueness is already verified by form validation

0 comments on commit 0c61dbe

Please sign in to comment.