View | Details | Raw Unified | Return to bug 7704
Collapse All | Expand All

(-)a/C4/Circulation.pm (-3 / +2 lines)
Lines 1545-1552 sub AddReturn { Link Here
1545
        $branches->{$hbr}->{PE} and $messages->{'IsPermanent'} = $hbr;
1545
        $branches->{$hbr}->{PE} and $messages->{'IsPermanent'} = $hbr;
1546
    }
1546
    }
1547
1547
1548
    # if indy branches and returning to different branch, refuse the return
1548
    # if indy branches and returning to different branch, refuse the return unless canreservefromotherbranches is turned on
1549
    if ($hbr ne $branch && C4::Context->preference("IndependantBranches")){
1549
    if ($hbr ne $branch && C4::Context->preference("IndependantBranches") && !(C4::Context->preference("canreservefromotherbranches"))){
1550
        $messages->{'Wrongbranch'} = {
1550
        $messages->{'Wrongbranch'} = {
1551
            Wrongbranch => $branch,
1551
            Wrongbranch => $branch,
1552
            Rightbranch => $hbr,
1552
            Rightbranch => $hbr,
1553
- 

Return to bug 7704