From e1ef7571c0f2ad9e122a81b9b4fa7cf2ad1a7dc7 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 6 Oct 2020 14:13:47 +0100 Subject: [PATCH] Bug 24446: Prioritize RotatingCollection transfer over StockRotationAdvance MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch prioritizes the RotatingCollection transfer type over the StockRotationAdvance transfers allowing us to queue up a our transfer behind it. Signed-off-by: Kathleen Milne Signed-off-by: Joonas Kylmälä Signed-off-by: Jonathan Druart --- Koha/StockRotationItem.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/StockRotationItem.pm b/Koha/StockRotationItem.pm index 944746e5ec..a3e49a00c7 100644 --- a/Koha/StockRotationItem.pm +++ b/Koha/StockRotationItem.pm @@ -245,7 +245,8 @@ sub advance { my $exception = $_; my $found_transfer = $_->transfer; if ( $found_transfer->in_transit - || $found_transfer->reason eq 'Reserve' ) + || $found_transfer->reason eq 'Reserve' + || $found_transfer->reason eq 'RotatingCollection' ) { return $item->request_transfer( { -- 2.39.5