From 89bfc422e6b229aeadae4efc3c9a9182e64e19ea Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 25 Nov 2014 10:01:05 +0100 Subject: [PATCH] Bug 11814: Fix sql parameters order Oops, bad paramaters passed on executing the sql query produced unexpected behaviors. Signed-off-by: Paola Rossi Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- C4/Serials.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index b4341a3b19..83884d4f61 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -282,7 +282,7 @@ sub UpdateClaimdateIssues { WHERE serialid in (" . join( ",", map { '?' } @$serialids ) . ") "; my $rq = $dbh->prepare($query); - $rq->execute($date, @$serialids, CLAIMED); + $rq->execute($date, CLAIMED, @$serialids); return $rq->rows; } -- 2.39.5