Bug 30754 - Library transfer limits should not allow for matching library to be unselected
Summary: Library transfer limits should not allow for matching library to be unselected
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-13 15:39 UTC by Katrin Fischer
Modified: 2022-05-13 15:39 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
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 Katrin Fischer 2022-05-13 15:39:57 UTC
When the library matching the current selection is unchecked in the normal editor for library transfer rules, it will be saved correctly, but will still display as checked after saving. 

To test:
* Set UseBranchTransferLimits to enforce
* Go to administration > library transfer limits
* Pick a library, unselect all using the link on top and save
* Verify that the library matching your selection is still displaying as checked
  You can verify that the rule actually appears in:
  select * from branch_transfer_limits;
* Edit the rules again, unselect all and then recheck the library matching the      selected library manually. 
  Rerunning the SQL from before will show the rule is now gone:
  select * from branch_transfer_limits;