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:
parent
2e91745b4c
commit
b08855fc69
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue