Skip to content
Snippets Groups Projects
Commit 7b21e425 authored by Matt Petro's avatar Matt Petro
Browse files

Current term is always visible

parent 4bd603d3
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,9 @@ class block_course_overview_uwmoodle extends block_base {
$defaultshowterm = ($termcode == $currentterm || $termcode == self::TERM_OTHER)? 1 : 0;
$showterm = get_user_preferences("block_course_overview_uwmoodle-show-term-$termcode", $defaultshowterm);
if ($termcode == $currentterm) {
$showterm = true; // force current term to be visible
}
if (!$showterm) {
$class = 'collapsed';
$ariaexpanded = "aria-expanded='false'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment