Permalink
Browse files

Merge branch 'wip-MDL-59655-33' of git://github.com/marinaglancy/mood…

…le into MOODLE_33_STABLE
  • Loading branch information...
dmonllao committed Aug 7, 2017
2 parents e8f932a + 454bf4c commit 5d407594f247ba3b31fe6556e3fb4e15b708dabe
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/modlib.php
@@ -60,8 +60,10 @@ function add_moduleinfo($moduleinfo, $course, $mform = null) {
$newcm->module = $moduleinfo->module;
$newcm->instance = 0; // Not known yet, will be updated later (this is similar to restore code).
$newcm->visible = $moduleinfo->visible;
$newcm->visibleoncoursepage = $moduleinfo->visibleoncoursepage;
$newcm->visibleold = $moduleinfo->visible;
if (isset($moduleinfo->visibleoncoursepage)) {
$newcm->visibleoncoursepage = $moduleinfo->visibleoncoursepage;
}
if (isset($moduleinfo->cmidnumber)) {
$newcm->idnumber = $moduleinfo->cmidnumber;
}

0 comments on commit 5d40759

Please sign in to comment.