]> git.koha-community.org Git - koha.git/commit
Bug 24295: Remove GetTransfers from opac-basket.pl
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Mar 2021 16:09:42 +0000 (16:09 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 26 Aug 2022 18:42:18 +0000 (15:42 -0300)
commite6334cc3608de7c735e49c729951d6642f598cda
tree1eb9a9925fe88009bf8b83cdb4815553452696a8
parent245da0f19803f33fd3fd051f0f586e39f63e7eb5
Bug 24295: Remove GetTransfers from opac-basket.pl

This patch replaces the call to GetTransfers in opac-basket with the
get_transfer method available from the Koha::Item object

Test plan
1/ Trigger the transfer of the item
2/ Check the opac-basket page for the display of the current transfer
   status
3/ Apply patch
4/ Repeat step 2

JK: Remove unneeded string formatting for transfertwhen as it's done
    on the template toolkit side already with $KohaDates. Add missing
    Koha::Items module import.

Rebased-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-basket.pl