Bug 27753: (QA follow-up) Use librarian as resolver

This patch updates the changed code to set the logged in librarian as
the person who resolved the return claim at checkin/checkout action.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Martin Renvoize 2024-05-01 12:58:17 +01:00 committed by Katrin Fischer
parent 2e91745b4c
commit b08855fc69
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 2 additions and 2 deletions

View File

@ -2546,7 +2546,7 @@ sub AddReturn {
my $autoClaimReturnCheckin = C4::Context->preference('AutoClaimReturnStatusOnCheckin');
if ($autoClaimReturnCheckin) {
my $patron_id = $patron->borrowernumber;
my $patron_id = C4::Context->userenv ? C4::Context->userenv->{'number'} : undef;
my $resolution = $autoClaimReturnCheckin;
$claim->resolve(

View File

@ -450,7 +450,7 @@ if (@$barcodes && $op eq 'cud-checkout') {
if ($autoClaimReturnCheckout) {
my $claim = $claims->next;
my $patron_id = $patron->borrowernumber;
my $patron_id = $logged_in_user->borrowernumber;
my $resolution = $autoClaimReturnCheckout;
$claim->resolve(