Bug 14741: Selecting all child permissions doesn't select the top level check box
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Nov 2019 17:12:30 +0000 (17:12 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 26 Nov 2019 11:11:06 +0000 (11:11 +0000)
commit53c8014557326e9a67c3c53b016e2fd10ac4f3ad
treed04d8716af1ffc5e88064cad90f81628eac23df5
parentfc7da400acfb26c33bfa941ba0f63e3aeba97c04
Bug 14741: Selecting all child permissions doesn't select the top level check box

This patch modifies the patron flags page so that manually selecting all
the child permissions also checks the checkbox for the parent
permission.

To test, apply the patch, open a patron record, select More -> Set
permissions.

 - Expand a set of permissions, for instance "Add, modify, and view
   patron information."
 - If any boxes are checked, uncheck them.
 - Check each of the "child" checkboxes ("Add, modify, and view..." and
   "View patron infos..." ).
 - When both checkboxes are checked, the "Add, modify, and view" parent
   permission should be automatically checked.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/member-flags.tt