use HomeOrHoldingBranch to determine if a return is valid or not
in fact, i'm not 100% sure of this bugfix : I don't see the case where a return should be done directly to homebranch, when the check out has been done at holdingbranch so maybe we could hardcode 'holdingbranch' instead of using HomeOrHoldingBranch the patch as written won't break anything existing. Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
32cfac05cf
commit
0bf436a0ea
1 changed files with 1 additions and 1 deletions
|
@ -1230,7 +1230,7 @@ sub AddReturn {
|
|||
}
|
||||
|
||||
# check if the book is in a permanent collection....
|
||||
my $hbr = $iteminformation->{'homebranch'};
|
||||
my $hbr = $iteminformation->{C4::Context->preference("HomeOrHoldingBranch")};
|
||||
my $branches = GetBranches();
|
||||
if ( $hbr && $branches->{$hbr}->{'PE'} ) {
|
||||
$messages->{'IsPermanent'} = $hbr;
|
||||
|
|
Loading…
Reference in a new issue