@@ -, +, @@ --- circ/returns.pl | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) --- a/circ/returns.pl +++ a/circ/returns.pl @@ -28,7 +28,7 @@ script to execute returns of books =cut use strict; -#use warnings; FIXME - Bug 2505 +use warnings; use CGI; use DateTime; @@ -223,7 +223,8 @@ if ($barcode) { # ( $returned, $messages, $issueinformation, $borrower ) = AddReturn( $barcode, $userenv_branch, $exemptfine, $dropboxmode); # do the return - my $homeorholdingbranchreturn = C4::Context->preference('HomeOrHoldingBranchReturn') or 'homebranch'; + my $homeorholdingbranchreturn = C4::Context->preference('HomeOrHoldingBranchReturn'); + $homeorholdingbranchreturn ||= 'homebranch'; # get biblio description my $biblio = GetBiblioFromItemNumber($itemnumber); --