From 488a1fb2d9278912e3d5d17da97b2f240aa73164 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 18 Dec 2019 20:51:34 +0000 Subject: [PATCH] Reverse transferstosend controller https://bugs.koha-community.org/show_bug.cgi?id=22569 --- circ/transferstosend.pl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/circ/transferstosend.pl b/circ/transferstosend.pl index 3283d14365..adfdbd0846 100755 --- a/circ/transferstosend.pl +++ b/circ/transferstosend.pl @@ -45,15 +45,15 @@ my $branchcode = C4::Context->userenv->{'branch'}; # transfers prompted by stockrotation my @transfers = Koha::Libraries->search( { - 'branchtransfers_frombranches.frombranch' => $branchcode, - 'branchtransfers_frombranches.datesent' => { '!=' => undef }, - 'branchtransfers_frombranches.datearrived' => undef, - 'branchtransfers_frombranches.comments' => + 'branchtransfers_tobranches.frombranch' => $branchcode, + 'branchtransfers_tobranches.datesent' => { '!=' => undef }, + 'branchtransfers_tobranches.datearrived' => undef, + 'branchtransfers_tobranches.comments' => [ "StockrotationAdvance", "StockrotationRepatriation" ] }, { - prefetch => 'branchtransfers_frombranches', - order_by => 'branchtransfers_frombranches.frombranch' + prefetch => 'branchtransfers_tobranches', + order_by => 'branchtransfers_tobranches.tobranch' } ); -- 2.20.1