Skip to content
Snippets Groups Projects
Commit 2e5d7df2 authored by Alexander Bias's avatar Alexander Bias
Browse files

Improve comment about remembering data for local_boostcoc when hidden course management is active

parent 8c328534
No related branches found
No related tags found
No related merge requests found
......@@ -1471,8 +1471,8 @@ class block_course_overview_campus extends block_base {
/*** LOCAL_BOOSTCOC ***/
/********************************************************************************/
// Do only if local_boostcoc is installed and if hidden courses managing is not active.
if (block_course_overview_campus_check_local_boostcoc() == true && $param_manage == 0) {
// Do only if local_boostcoc is installed.
if (block_course_overview_campus_check_local_boostcoc() == true) {
// Remember the not shown courses for local_boostcoc.
block_course_overview_campus_remember_notshowncourses_for_local_boostcoc($courses);
......
......@@ -402,6 +402,8 @@ function block_course_overview_campus_compare_categories($a, $b) {
*
* Basically, this is remembered by the JavaScript filters directly when they are applied in the browser, but we want a fallback
* when javascript is off
* Unfortunately, at page load local_boostcoc can only change the nav drawer _before_ this function can store its data, thus the
* fallback when javascript is off has a lag.
*
* @param array $courses
*/
......@@ -432,7 +434,7 @@ function block_course_overview_campus_remember_notshowncourses_for_local_boostco
*
* Basically, this is remembered by the JavaScript filters directly when they are applied in the browser, but we want a fallback
* when javascript is off.
* Unfortunately, at page load local_boostcoc changes the nav drawer _before_ this function can store changed filters, thus the
* Unfortunately, at page load local_boostcoc can only change the nav drawer _before_ this function can store its data, thus the
* fallback when javascript is off has a lag.
*
* @param array $courses
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment