mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Accessing wrong field of $mod from course.modinfo. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
37d00ed467
commit
df4c79e232
1 changed files with 1 additions and 1 deletions
|
@ -4913,7 +4913,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid
|
|||
$section = $mod->section;
|
||||
|
||||
//Only add visible or teacher mods to jumpmenu
|
||||
if ($mod->visible or has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_MODULE, $mod->id))) {
|
||||
if ($mod->visible or has_capability('moodle/course:viewhiddenactivities', get_context_instance(CONTEXT_MODULE, $mod->cm))) {
|
||||
$url = $mod->mod .'/view.php?id='. $mod->cm;
|
||||
if ($flag) { // the current mod is the "next" mod
|
||||
$nextmod = $mod;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue