Bug 9180: All branches should be returned if a default rule exists
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 30 Oct 2013 09:50:13 +0000 (10:50 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 19 Aug 2014 12:29:51 +0000 (09:29 -0300)
commit4daaf8067811ac60b4bca891a5379315b5167127
treec9910fd29f59686ca912a80b56d627e0fe1985e8
parent6f10c7bbbcb596e79344d15885df8b36eb7d7f51
Bug 9180: All branches should be returned if a default rule exists

The C4::Overdues::GetBranchcodesWithOverdueRules routine has a bug.
If a default rule *and* a specific rule exist, only the branchcode for
the specific rule is returned.

Test plan:
prove t/db_dependent/Overdues.t
and verify the unit tests are consistent.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Overdues.pm
t/db_dependent/Overdues.t