Hiding course total without hiding entire user report

Hiding course total without hiding entire user report

by Bob Puffer -
Number of replies: 1
This was a much simpler task than I thought:
grade/edit/tree/action.php around line 56 -
comment out
$object->set_hidden(1, true);
insert
$object->set_hidden(1);

This allows granularity with hiding category or course totals but not cascading the "hides" (which is what we want). The 'show' still cascades so an entire category can he shown with one click, if needed.

This is an example of some of the features that will be introduced by the CLAMP Liberal Arts Edition of Moodle after next month's hack-doc fest:

http://clamp-it.org


In reply to Bob Puffer

Re: Hiding course total without hiding entire user report

by Bob Puffer -
I wanted to revisit this since it appears to still be a problem with 1.99 out of the box versions.

In addition to the code changes mentioned above one might also choose to edit around line 71:

$object->set_hidden(0, true);

AND MAKE IT:

$object->set_hidden(0);

This will prevent showing a category total and having any purposely hidden items from automatically being displayed.