Permalink
Browse files

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

…moodle
  • Loading branch information...
dmonllao committed Aug 7, 2017
2 parents 21e68c5 + 07ec41b commit bfaf47e168c623d0ebae0e33f7d783bf4edfd508
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 bfaf47e

Please sign in to comment.