[Koha-bugs] [Bug 25112] New: Koha::CirculationRules->set_rules should handle scopes per rule
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Apr 11 19:36:17 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25112
Bug ID: 25112
Summary: Koha::CirculationRules->set_rules should handle scopes
per rule
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: lari.taskula at hypernova.fi
QA Contact: testopia at bugs.koha-community.org
Koha::CirculationRules->set_rules is currently too complicated to use. Right
now, in order to specify multiple rules at once, they must all be rules that
accept the same set of scopes. Otherwise we can get this type of errors:
1/9 set_rule cannot set 'holds_per_record' for a 'checkout_type'! at
t/db_dependent/Circulation/GetHardDueDate.t line 215.
Validating scopes at set_rule() is good, but set_rules() should examine each
rule and pass the correct scope to set_rule() instead of passing all scopes to
every rule like it is doing now.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list