From ae3f09e6cdb06a32804d3ce2271cfabcc74f63d2 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 28 May 2012 16:58:39 +0800 Subject: [PATCH] Revert "MDL-33212 Course page: Eye icon should override other conditions" This reverts commit 805366d987a820ab8d345807d84a36c165468749. --- course/lib.php | 2 +- lib/conditionlib.php | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/course/lib.php b/course/lib.php index 4dbbd23be44..e1dc6d329b9 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1763,7 +1763,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, // see the activity itself, or for staff) if (!$mod->uservisible) { echo '
'.$mod->availableinfo.'
'; - } else if ($canviewhidden && !empty($CFG->enableavailability) && $mod->visible) { + } else if ($canviewhidden && !empty($CFG->enableavailability)) { $ci = new condition_info($mod); $fullinfo = $ci->get_full_information(); if($fullinfo) { diff --git a/lib/conditionlib.php b/lib/conditionlib.php index 1e96cd1b072..83b79d343d2 100644 --- a/lib/conditionlib.php +++ b/lib/conditionlib.php @@ -486,16 +486,6 @@ WHERE } } - // If the item is marked as 'not visible' then we don't change the available - // flag (visible/available are treated distinctly), but we remove any - // availability info. If the item is hidden with the eye icon, it doesn't - // make sense to show 'Available from ' or similar, because even - // when that date arrives it will still not be available unless somebody - // toggles the eye icon. - if (!$this->cm->visible) { - $information = ''; - } - $information=trim($information); return $available; }