[Koha-bugs] [Bug 35458] New: Issues rules without value can cause problems when perform checkouts on many sites
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 1 11:29:01 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35458
Bug ID: 35458
Summary: Issues rules without value can cause problems when
perform checkouts on many sites
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Circulation
Assignee: koha-bugs at lists.koha-community.org
Reporter: thibaud.guillot at biblibre.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
Hello everyone,
In the case of multi-site use, when defining rules such as "maxissueqty" or
"patron_maxissueqty", for example, defining a value and then deleting it will
allow the basic value to be kept but empty.
As a result, certain code checks based on the rule definition rather than its
value may produce unwanted behavior. I want to make sure with this bz that the
"can_be_blank" setting could solve this kind of behavior.
Here's a use case:
For site A, no rule has ever been added to the "Default checkout, hold and
return policy" table.
For site B patron_maxissueqty was set to "5", then deleted, and is now set to
empty "".
Perform a checkout from site A to a borrower from site C will cause a pop-up
with the possibility of forcing the message "This patron can't check out this
item per library circulation policy.
No circulation rule is defined for this patron and itemtype combination",
whereas the same borrower will be able to obtain an issue without a pop-up for
a document linked to site B since the rule is present, the check being based on
its presence and not its value.
I therefore wonder whether a list of additional rules could contain the
"can_be_blank" parameter introduced by bug 26529 in order to avoid this kind of
behavior.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list