Bug 21674 - Data integrity not enforced for library groups
Summary: Data integrity not enforced for library groups
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major (vote)
Target Milestone: ---
Assignee: Bugs List
QA Contact: Testopia
URL:
Whiteboard:
Keywords:
Depends on: 15707
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-25 20:34 UTC by Jonathan Druart
Modified: 2018-10-25 20:34 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Bot Control: ---
When did the bot last check this:
Who signed the patch off:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2018-10-25 20:34:21 UTC
You can create hierarchical groups of libraries you are not allowed to add several times the same library to a given group/subgroup. The libraries that are part of the group is not displayed on the interface, to prevent the user to select it.

However this restriction is only done template-side, the controller and module does not handle it.

To recreate the problem:
- Go to Home › Administration › Library groups
- Add a group
- Add a library
- reload the page several times
=> The same library appears several times in the group

Note that we should also replace the "Add" and "Remove" links with buttons.