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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 2546-2552 sub AddReturn { Link Here
2546
            my $autoClaimReturnCheckin = C4::Context->preference('AutoClaimReturnStatusOnCheckin');
2546
            my $autoClaimReturnCheckin = C4::Context->preference('AutoClaimReturnStatusOnCheckin');
2547
            if ($autoClaimReturnCheckin) {
2547
            if ($autoClaimReturnCheckin) {
2548
2548
2549
                my $patron_id  = $patron->borrowernumber;
2549
                my $patron_id  = C4::Context->userenv ? C4::Context->userenv->{'number'} : undef;
2550
                my $resolution = $autoClaimReturnCheckin;
2550
                my $resolution = $autoClaimReturnCheckin;
2551
2551
2552
                $claim->resolve(
2552
                $claim->resolve(
(-)a/circ/circulation.pl (-2 / +1 lines)
Lines 450-456 if (@$barcodes && $op eq 'cud-checkout') { Link Here
450
            if ($autoClaimReturnCheckout) {
450
            if ($autoClaimReturnCheckout) {
451
                my $claim = $claims->next;
451
                my $claim = $claims->next;
452
452
453
                my $patron_id  = $patron->borrowernumber;
453
                my $patron_id  = $logged_in_user->borrowernumber;
454
                my $resolution = $autoClaimReturnCheckout;
454
                my $resolution = $autoClaimReturnCheckout;
455
455
456
                $claim->resolve(
456
                $claim->resolve(
457
- 

Return to bug 27753