From 0f4b45b6a82989349dcf149011afcb6d7b4d20e2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 26 May 2023 14:44:05 +0000 Subject: [PATCH] Bug 33788: Limit the number of old issues rows returned This patch updates the parameter from 'limit' to 'rows' To test: 1 - Checkout an item to 5 different people 2 - View item details on items tab of record 3 - Note you see last borrower, and three previous borrowers 4 - Apply patch, restart all 5 - Refresh page 6 - You shoulw now only see last borrower and 2 previous borrowers Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 7ec849f39366e82e8813ee3ca897f3bb97ab9e39) Signed-off-by: Matt Blenkinsop --- catalogue/moredetail.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index d213330dac..956f6b4352 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -243,7 +243,7 @@ foreach my $item (@items){ { itemnumber => $item->itemnumber }, { order_by => { '-desc' => 'returndate' }, - limit => 3 + rows => 3, } ); -- 2.39.5