mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-49202 core_grades: perform same action on items in form
When you click on 'Edit' then 'Hide' on a grade item like an assignment it also hides the grades. However, If you use the 'hidden' option on the 'Edit settings' page it just hides that item and doesn't hide grades as well. We want them to be consistent.
This commit is contained in:
parent
036800d99d
commit
25bce5c526
@ -190,7 +190,7 @@ if ($mform->is_cancelled()) {
|
||||
|
||||
if ($item->cancontrolvisibility) {
|
||||
// Update hiding flag.
|
||||
$gradeitem->set_hidden($hide, false);
|
||||
$gradeitem->set_hidden($hide, true);
|
||||
}
|
||||
|
||||
$gradeitem->set_locktime($locktime); // Locktime first - it might be removed when unlocking.
|
||||
|
Loading…
x
Reference in New Issue
Block a user