mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
improved hiding support in grade/
This commit is contained in:
parent
e3fa6587ee
commit
f60c61b1b2
11 changed files with 98 additions and 60 deletions
|
@ -825,9 +825,9 @@ class grade_tree {
|
|||
$icon = 'show';
|
||||
$tooltip = '';
|
||||
|
||||
if ($element['object']->hidden > 1) { // Change the icon and add a tooltip showing the date
|
||||
if ($element['type'] != 'category' and $element['object']->get_hidden() > 1) { // Change the icon and add a tooltip showing the date
|
||||
$icon = 'hiddenuntil';
|
||||
$tooltip = userdate($element['object']->hidden);
|
||||
$tooltip = userdate($element['object']->get_hidden());
|
||||
}
|
||||
|
||||
$url = $CFG->wwwroot.'/grade/edit/tree/action.php?id='.$this->courseid.'&action=show&sesskey='.sesskey()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue