mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
MDL-37079 missed one modedit.php change since started to work on the issue
This commit is contained in:
parent
80fe0c1983
commit
37550a52e7
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ function add_moduleinfo($moduleinfo, $course, $mform = null) {
|
|||
// Make sure visibility is set correctly (in particular in calendar).
|
||||
// Note: allow them to set it even without moodle/course:activityvisibility.
|
||||
set_coursemodule_visible($moduleinfo->coursemodule, $moduleinfo->visible);
|
||||
$DB->set_field('course_modules', 'visibleold', 1, array('id' => $moduleinfo->coursemodule));
|
||||
|
||||
if (isset($moduleinfo->cmidnumber)) { // Label.
|
||||
// Set cm idnumber - uniqueness is already verified by form validation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue