From c3d24d38eb65047b85de818511e5fa22873cd537 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 16 Feb 2018 12:12:12 +0100 Subject: [PATCH] Bug 15524: (QA follow-up) Pass max_holds at the right position in update When updating max_holds should be before the categorycode in the update query. Things that can be found by testing :) Signed-off-by: Marcel de Rooy --- admin/smart-rules.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl index 1279c4a..eb4ef7b 100755 --- a/admin/smart-rules.pl +++ b/admin/smart-rules.pl @@ -306,7 +306,7 @@ elsif ($op eq "add-branch-cat") { $sth_search->execute($categorycode); my $res = $sth_search->fetchrow_hashref(); if ($res->{total}) { - $sth_update->execute( $maxissueqty, $maxonsiteissueqty, $categorycode, $max_holds ); + $sth_update->execute( $maxissueqty, $maxonsiteissueqty, $max_holds, $categorycode ); } else { $sth_insert->execute( $categorycode, $maxissueqty, $maxonsiteissueqty, $max_holds ); } -- 2.1.4