Skip to content

Commit f7b49d7

Browse files
committed
Add conf setting to hide the session list in Reporting tool - refs BT#13722
1 parent eb3d8cd commit f7b49d7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main/install/configuration.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,3 +689,5 @@
689689
3 => 'Dimension',
690690
]
691691
];*/
692+
// Hide the session list in Reporting tool. Useful when a course has too many sessions.
693+
//$_configuration['hide_reporting_session_list'] = false;

main/tracking/courseLog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ function(index) {
338338
$html .= $coaches;
339339
}
340340

341-
if (api_is_platform_admin(true) ||
342-
api_is_session_general_coach()
341+
if (!api_get_configuration_value('hide_reporting_session_list') &&
342+
(api_is_platform_admin(true) || api_is_session_general_coach())
343343
) {
344344
$sessionList = SessionManager::get_session_by_course($courseInfo['real_id']);
345345

0 commit comments

Comments
 (0)