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

(-)a/C4/Circulation.pm (-7 lines)
Lines 1895-1907 sub AddReturn { Link Here
1895
        my $is_overdue;
1895
        my $is_overdue;
1896
        die "The item is not issed and cannot be returned" unless $issue; # Just in case...
1896
        die "The item is not issed and cannot be returned" unless $issue; # Just in case...
1897
        $patron or warn "AddReturn without current borrower";
1897
        $patron or warn "AddReturn without current borrower";
1898
		my $circControlBranch;
1899
        if ($dropbox) {
1898
        if ($dropbox) {
1900
            # define circControlBranch only if dropbox mode is set
1901
            # don't allow dropbox mode to create an invalid entry in issues (issuedate > today)
1902
            # FIXME: check issuedate > returndate, factoring in holidays
1903
1904
            $circControlBranch = _GetCircControlBranch($item,$patron_unblessed);
1905
            $is_overdue = $issue->is_overdue( $dropboxdate );
1899
            $is_overdue = $issue->is_overdue( $dropboxdate );
1906
        } else {
1900
        } else {
1907
            $is_overdue = $issue->is_overdue;
1901
            $is_overdue = $issue->is_overdue;
1908
- 

Return to bug 22049