From fe4cb677742d6820a2f54aea02146186c3d5baae Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 18 Feb 2014 16:26:07 +0100 Subject: [PATCH] Bug 10789: Follow-up: restored second SQL parameter in GetLastOrderReceivedFromSubscriptionid Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton (cherry picked from commit e27ea08887a0332692c37b05b15021b14b1bef78) Signed-off-by: Fridolin Somers --- C4/Acquisition.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 31fcb533d8..fca72092e7 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1197,7 +1197,7 @@ sub GetLastOrderReceivedFromSubscriptionid { LIMIT 1 |; my $result_set = - $dbh->selectall_arrayref( $query, { Slice => {} }, $subscriptionid ); + $dbh->selectall_arrayref( $query, { Slice => {} }, $subscriptionid, $subscriptionid ); # result_set assumed to contain 1 match return $result_set->[0]; -- 2.39.5