mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Modified to obtain the visible property too. To use it when showing the list
of instances of every mod (bug #364)
This commit is contained in:
parent
638f95b1ff
commit
7cfb83477c
@ -1008,7 +1008,7 @@ function get_all_instances_in_course($modulename, $courseid, $sort="cw.section")
|
||||
$showvisible = "AND cm.visible = '1'";
|
||||
}
|
||||
|
||||
return get_records_sql("SELECT m.*,cw.section,cm.id as coursemodule
|
||||
return get_records_sql("SELECT m.*,cw.section,cm.id as coursemodule,cm.visible as visible
|
||||
FROM {$CFG->prefix}course_modules cm,
|
||||
{$CFG->prefix}course_sections cw,
|
||||
{$CFG->prefix}modules md,
|
||||
|
Loading…
x
Reference in New Issue
Block a user