[Koha-patches] [PATCH] [followup] (bug #3819) variable name typo

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Thu Dec 3 10:17:35 CET 2009


This patch fix variable name in opac, that made koha fatal error.
---
 opac/opac-reserve.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl
index 9842e71..194a28e 100755
--- a/opac/opac-reserve.pl
+++ b/opac/opac-reserve.pl
@@ -331,11 +331,11 @@ foreach my $biblioitemnumber (@biblioitemnumbers) {
         # If there is no loan, return and transfer, we show a checkbox.
         $item->{notforloan} = $item->{notforloan} || 0;
 
-        my $branchitemrule = GetBranchItemRule( $borr->{'branchcode'}, $itemInfo->{'itype'} );
+        my $branchitemrule = GetBranchItemRule( $borr->{'branchcode'}, $item->{'itemtype'} );
         my $policy_holdallowed = 1;
         
         if ( $branchitemrule->{'holdallowed'} == 0 ||
-                ( $branchitemrule->{'holdallowed'} == 1 && $borr->{'branchcode'} ne $itemInfo->{'homebranch'} ) ) {
+                ( $branchitemrule->{'holdallowed'} == 1 && $borr->{'branchcode'} ne $item->{'homebranch'} ) ) {
             $policy_holdallowed = 0;
         }
 
-- 
1.6.3.3




More information about the Koha-patches mailing list