We need to move the GetIssuingRule subroutine because of the side effects it causes to use C4::Circulation from the Koha namespace (see bug 17591)
Created attachment 57393 [details] [review] Bug 17599 - Move C4::Circulation::GetIssuingRule to Koha::IssuingRules->get_effective_issuing_rule This is a POC, I have not tested it yet.
Created attachment 57494 [details] [review] Bug 17599 - Move C4::Circulation::GetIssuingRule to Koha::IssuingRules->get_effective_issuing_rule Test Plan: 1) Apply this patch 2) Generate a test of 6 test rules using every combination of library, item type and patron type with different loan lengths 3) Perform a checkout of the patron type and item type 4) Note the correct rule was selected 5) Remove the most specific rule 6) Return and check out again 7) Repeat steps 4-6 until you have tested all 6 rules Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Created attachment 57501 [details] [review] Bug 17599: (QA followup) Remove userenv warning Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 57502 [details] [review] Bug 17599: Move C4::Circulation::GetIssuingRule to Koha::IssuingRules->get_effective_issuing_rule This is a POC, I have not tested it yet. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 57503 [details] [review] Bug 17599: (QA followup) Remove userenv warning Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Created attachment 57504 [details] [review] Bug 17599: (QA followup) Perltidy really long lines Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Pushed to master for 16.11, thanks Jonathan, Tomas!
Created attachment 57506 [details] [review] Bug 17599: Make the tests pass If you run TooMany or MultiplePerRecord.t after t/db_dependent/Circulation/Returns.t (for instance) and that you are running memcached, item-level_itypes will be 0. These tests assume that the pref is 1
(In reply to Jonathan Druart from comment #8) > Created attachment 57506 [details] [review] [review] > Bug 17599: Make the tests pass > > If you run TooMany or MultiplePerRecord.t after > t/db_dependent/Circulation/Returns.t (for instance) and that you are > running memcached, item-level_itypes will be 0. > These tests assume that the pref is 1 Followup pushed to master for 16.11, thanks Jonathan!
(In reply to Jonathan Druart from comment #8) > Created attachment 57506 [details] [review] [review] > Bug 17599: Make the tests pass See bug 17633 for a complete fix.
*** Bug 17591 has been marked as a duplicate of this bug. ***