From 107fcf7da443a32b3987117d98ca239ee94e1a00 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Jan 2022 17:13:32 +0100 Subject: [PATCH] Bug 29809: Fix StockRotationStages.t Signed-off-by: Jonathan Druart --- t/db_dependent/StockRotationStages.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/StockRotationStages.t b/t/db_dependent/StockRotationStages.t index 7c45a6fbf2c..ae94473e223 100755 --- a/t/db_dependent/StockRotationStages.t +++ b/t/db_dependent/StockRotationStages.t @@ -310,7 +310,7 @@ subtest 'Tests for investigate (singular)' => sub { } ); my $dbitem = Koha::StockRotationItems->find($item); - $dbitem->itemnumber->homebranch($code) + $dbitem->item->homebranch($code) ->holdingbranch($code)->store; $cnt++; } @@ -352,7 +352,7 @@ subtest 'Tests for investigate (singular)' => sub { } ); my $dbitem = Koha::StockRotationItems->find($item); - $dbitem->itemnumber->homebranch($code) + $dbitem->item->homebranch($code) ->holdingbranch($code)->store; $cnt++; } -- 2.25.1