Changed the way to get borrower's branchcode in HoldItem and HoldTitle
authorJean-André Santoni <jeanandre.santoni@biblibre.com>
Fri, 12 Jun 2009 10:10:14 +0000 (12:10 +0200)
committerGalen Charlton <gmcharlt@gmail.com>
Sun, 6 Sep 2009 17:41:25 +0000 (13:41 -0400)
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/ILSDI/Services.pm

index ed8916b..a40df62 100644 (file)
@@ -629,7 +629,7 @@ sub HoldTitle {
                        return $out;
                }
        } else { # if user provide no branch, use his own
-               $branch = C4::Context->userenv->{'branch'};
+               $branch = $borrower->{'branchcode'};
        }
 
        # Add the reserve
@@ -718,7 +718,7 @@ sub HoldItem {
                        return $out;
                }
        } else { # if user provide no branch, use his own
-               $branch = C4::Context->userenv->{'branch'};
+               $branch = $borrower->{'branchcode'};
        }
        
        my $rank;