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( |
2553 |
- |
|
|