]> git.koha-community.org Git - koha.git/commit
Bug 25421: Make ->pickup_locations only return an arrayref
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 May 2020 14:40:15 +0000 (11:40 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 May 2020 09:59:58 +0000 (10:59 +0100)
commit6f1e9fe75080b9a02c49730cbdb341cf09ca9826
tree66271ed61284b2429c537341184e5a2a2fc3eada
parent1eae01fa14602c32f0e2de925b60b5f3a2b83db1
Bug 25421: Make ->pickup_locations only return an arrayref

This patch makes Koha::Item->pickup_locations and
Koha::Biblio->pickup_locations always return an arrayref.

Test are adjusted to reflect this:

1. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t t/db_dependent/Koha/Item.t
=> SUCCESS: Tests pass!
2. Apply this patch and repeat 1
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Didier Gautheron <didier.gautheron@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Biblio.pm
Koha/Item.pm
t/db_dependent/Koha/Biblio.t
t/db_dependent/Koha/Item.t