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

--- Comment #222 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211245
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211245&action=edit
Bug 42625: Add library group accessor to Koha::RecordSource

Add Koha::RecordSource->library_groups, to read and set the library
groups exempt from the lock of a record source.

Without arguments it returns the linked groups as a Koha::Library::Groups
set. Given a list of groups it replaces the links with that list. Only
top level library groups that are flagged "Use for record source
editing" can be linked: for anything else a Koha::Exceptions::BadParameter
is thrown for library_group_id, and the existing links are left alone.
The links are replaced in a transaction.

There is nothing to see in the staff interface with this patch alone. It
is used by the patches that follow, and covered by the unit tests added
in this series.

To test:
1. Apply the patches, then run updatedatabase.pl
2. Run: prove t/db_dependent/Koha/RecordSource.t
=> SUCCESS: Tests pass

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