]> git.koha-community.org Git - koha.git/commit
Bug 18930: (RM follow-up) Restore primary key find
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 Jul 2019 13:55:09 +0000 (14:55 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 Jul 2019 12:53:54 +0000 (13:53 +0100)
commitce17dc90a196cc54803a6ca7fc94b0c1d31bc15a
tree170f595261e75db549c0269d7e4dca024ca7666a
parentd4d02fbe292ab36bb966300eb0c078c3467496e5
Bug 18930: (RM follow-up) Restore primary key find

The find method in RefundLostItemFeeRules had been overloaded to only
support a hash being passed, however find can be called with a bare
array of primary key values (i.e. id in this case).  TestBuilder relies
on this functionality and started to fail; This patch simply restores
the original behaviour for when a single value (or array of values) is
passed.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/RefundLostItemFeeRules.pm
Koha/Schema/Result/CirculationRule.pm
t/db_dependent/RefundLostItemFeeRule.t
t/lib/TestBuilder.pm