Bug 2505 : Switch on warnings in circ/returns.pl
Removed a compile time warning caused by a void context
in a bit of too clever obscure code
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit e7971380e8)
This commit is contained in:
parent
572ca29e63
commit
213f5d7710
|
|
@ -27,7 +27,7 @@ script to execute returns of books
|
|||
=cut
|
||||
|
||||
use strict;
|
||||
#use warnings; FIXME - Bug 2505
|
||||
use warnings;
|
||||
|
||||
use CGI;
|
||||
use C4::Context;
|
||||
|
|
@ -222,7 +222,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue