From a9dacab04a86706177e973d1fee9eb69d7b1ca6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Andr=C3=A9=20Santoni?= Date: Fri, 12 Jun 2009 12:10:14 +0200 Subject: [PATCH] Changed the way to get borrower's branchcode in HoldItem and HoldTitle Signed-off-by: Galen Charlton --- C4/ILSDI/Services.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index ed8916b0fe..a40df6201f 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -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; -- 2.39.5