From 33badcac1b8cec87dfcf4258a6e4f57ca1202f78 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 12 Jan 2016 15:39:15 +0000 Subject: [PATCH] Bug 9805 [QA Followup] - Fix QA Issue --- C4/Circulation.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b146ac7..8f4631b 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2943,11 +2943,12 @@ sub AddRenewal { # Update the renewal count on the item, and tell zebra to reindex $renews = $biblio->{'renewals'} + 1; + my $borrower = C4::Members::GetMember( borrowernumber => $borrowernumber ); my $schema = Koha::Database->new()->schema(); my $rule = $schema->resultset('DefaultBranchCircRule')->single( { branchcode => _GetCircControlBranch( $item, $borrower ) } ); $rule ||= $schema->resultset('DefaultCircRule')->single(); - # If item was lost, it has now been found, reverse any list item charges if neccessary. + # If item was lost, it has now been found, reverse any list item charges if necessary. my $itemlost = 0; if ( $item->{itemlost} ) { $itemlost = 1; -- 2.1.4