Permalink
Browse files

Revert "MDL-33212 Course page: Eye icon should override other conditi…

…ons"

This reverts commit e578029.
  • Loading branch information...
danpoltawski committed May 28, 2012
1 parent 7e37076 commit 92f03977db0b9c7e314649f42fd1589041f8dd34
Showing with 1 addition and 11 deletions.
  1. +1 −1 course/lib.php
  2. +0 −10 lib/conditionlib.php
View
@@ -1777,7 +1777,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
// see the activity itself, or for staff)
if (!$mod->uservisible) {
echo '<div class="availabilityinfo">'.$mod->availableinfo.'</div>';
- } 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) {
View
@@ -546,16 +546,6 @@ public function is_available(&$information, $grabthelot=false, $userid=0, $modin
}
}
- // 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 <date>' 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;
}

0 comments on commit 92f0397

Please sign in to comment.