From d409d928e9824c97910278e86c4914fdc43c5a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C5=A0iman?= Date: Thu, 3 Nov 2016 04:53:20 +0100 Subject: [PATCH] Bug 17509: Fixed invalid patterns --- C4/Reserves.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 91d77b4..6a2543c 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -2624,19 +2624,19 @@ sub GetBorrowersToSatisfyHold { if ($library eq 'RequestorLibrary') { $query .= " AND borrowers.branchcode = ?"; - $sth = $dbh->prepare( $query ); - $sth->execute( $hold->id(), $hold->borrower()->branchcode ); + $sth = $dbh->prepare( $query ); + $sth->execute( $hold->id(), $hold->borrower()->branchcode ); } elsif ($library eq 'ItemHomeLibrary') { $query .= " AND items.homebranch = ?"; - $sth = $dbh->prepare( $query ); - $sth->execute( $hold->id(), $hold->borrower()->branchcode ); + $sth = $dbh->prepare( $query ); + $sth->execute( $hold->id(), $hold->borrower()->branchcode ); } else { - $sth = $dbh->prepare( $query ); - $sth->execute( $hold->id() ); + $sth = $dbh->prepare( $query ); + $sth->execute( $hold->id() ); } - + my @results = (); while ( my $data = $sth->fetchrow_hashref ) { my $borrower = C4::Members::GetMember(borrowernumber => $data->{borrowernumber}); -- 2.1.4