From bde6494160feec8dda33b3d25981f48ba7401b3a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 6 Jan 2022 16:33:14 +0000 Subject: [PATCH] Bug 28909: (follow-up) Update test for warning and rename variable Variable was updated for params, need to update declaration too Signed-off-by: Nick Clemens --- t/db_dependent/StockRotationItems.t | 2 +- tools/stockrotation.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/StockRotationItems.t b/t/db_dependent/StockRotationItems.t index 820cc680e1..36c52f1888 100755 --- a/t/db_dependent/StockRotationItems.t +++ b/t/db_dependent/StockRotationItems.t @@ -267,7 +267,7 @@ subtest "Tests for needs_advancing." => sub { )->store; is($dbitem->needs_advancing, 1, "Ready to be advanced."); $dbtransfer->delete; - warning_is {$dbitem->needs_advancing} "We have no historical branch transfer for itemnumber " . $dbitem->item->itemnumber . "; This should not have happened!", "Missing transfer is warned."; + warning_is {$dbitem->needs_advancing} "We have no historical branch transfer for item " . $dbitem->item->itemnumber . "; This should not have happened!", "Missing transfer is warned."; $schema->storage->txn_rollback; }; diff --git a/tools/stockrotation.pl b/tools/stockrotation.pl index 4523c99174..04ff184da5 100755 --- a/tools/stockrotation.pl +++ b/tools/stockrotation.pl @@ -252,7 +252,7 @@ if (!defined $op) { # Get all items on this rota, for each prefetch their # stage and biblio objects - my $items = Koha::StockRotationItems->search( + my $sritems = Koha::StockRotationItems->search( { 'stage.rota_id' => $params{rota_id} }, { prefetch => { -- 2.30.2