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

(-)a/C4/Circulation.pm (-3 / +2 lines)
Lines 1577-1584 sub AddReturn { Link Here
1577
        $branches->{$hbr}->{PE} and $messages->{'IsPermanent'} = $hbr;
1577
        $branches->{$hbr}->{PE} and $messages->{'IsPermanent'} = $hbr;
1578
    }
1578
    }
1579
1579
1580
    # if indy branches and returning to different branch, refuse the return
1580
    # if indy branches and returning to different branch, refuse the return unless canreservefromotherbranches is turned on
1581
    if ($hbr ne $branch && C4::Context->preference("IndependantBranches")){
1581
    if ($hbr ne $branch && C4::Context->preference("IndependantBranches") && !(C4::Context->preference("canreservefromotherbranches"))){
1582
        $messages->{'Wrongbranch'} = {
1582
        $messages->{'Wrongbranch'} = {
1583
            Wrongbranch => $branch,
1583
            Wrongbranch => $branch,
1584
            Rightbranch => $hbr,
1584
            Rightbranch => $hbr,
1585
- 

Return to bug 7704