Skip to content
Browse files

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

…nto MOODLE_23_STABLE
  • Loading branch information...
2 parents 2dc4d19 + 642cbee commit 772e6ab1bfbceea7ab21c7a216aa0876814c2f06 @damyon damyon committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/modedit.php
View
2 course/modedit.php
@@ -412,6 +412,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;
@@ -481,7 +482,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 772e6ab

Please sign in to comment.
Something went wrong with that request. Please try again.