https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42625

--- Comment #253 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 211278
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211278&action=edit
Bug 42625: Unlink record sources when group flag is unchecked

A library group that is no longer flagged "Use for record source
editing" cannot be linked to record sources any more, so when the group
is saved without the flag its links to record sources are removed, in
the same transaction as the update.

As this removes exemptions from record sources, ask for confirmation in
Administration > Library groups before saving a group whose flag has
been unchecked.

To test:
1. Apply the patches, then run updatedatabase.pl, yarn build and
   restart_all
2. Administration > Library groups: create a group "Editors" with "Use
   for record source editing" checked
3. Administration > Record sources: create a record source with
   "Editors" selected under "Editable by library groups"
4. Administration > Library groups, edit "Editors", uncheck "Use for
   record source editing" and click Update
=> SUCCESS: a confirmation warns that the group will be unlinked from
   all record sources
5. Cancel the confirmation
=> SUCCESS: the modal stays open, and nothing is saved
6. Click Update again and confirm
7. Edit the record source from step 3
=> SUCCESS: no library group is selected

Signed-off-by: Brendan Lawlor <[email protected]>
Sponsored-by: CLAMS
Signed-off-by: Andrew Fuerste Henry <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to