]> git.koha-community.org Git - koha.git/commit
Bug 18361: Koha::Objects->find should accept composite primary keys
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 31 Mar 2017 11:52:15 +0000 (13:52 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 3 Aug 2017 07:41:19 +0000 (09:41 +0200)
commit90ef2aedffedf15bdacb1d6ddbbe81bff72036ac
tree1eb062e647b642d216688d7486f0a3d217be0a3e
parent6e26bd0567c29b990eb8c786c2dc530afdd8b598
Bug 18361: Koha::Objects->find should accept composite primary keys

Changes the $id parameter to an array. (IssuingRule has three keys.)
The build_object method in TestBuilder.pm has been adjusted to pass
multiple primary key values to find.

Also adjusted the POD section to show more clearly that we accept
the same parameters as DBIx ResultSet does.

Test plan:
Run t/db_dependent/Koha/Object.t
Run t/db_dependent/Koha/Objects.t
Run t/db_dependent/TestBuilder.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ec288a50def5c4fdcd7b001087fed0b120e4a211)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Objects.pm
t/lib/TestBuilder.pm