Bugzilla – Attachment 165959 Details for
Bug 27753
Automate resolution of return claim when checking in an item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27753: Example of how we might set to librarian instead of patron
Bug-27753-Example-of-how-we-might-set-to-librarian.patch (text/plain), 916 bytes, created by
Martin Renvoize (ashimema)
on 2024-05-01 12:00:39 UTC
(
hide
)
Description:
Bug 27753: Example of how we might set to librarian instead of patron
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-05-01 12:00:39 UTC
Size:
916 bytes
patch
obsolete
>From c6e0c49e8e2921e909b66f99425e7607d2ab03eb Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 1 May 2024 12:58:17 +0100 >Subject: [PATCH] Bug 27753: Example of how we might set to librarian instead > of patron > >--- > C4/Circulation.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 2e24b990759..bff0b1e2f56 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -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( >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27753
:
162517
|
163058
|
163059
|
163060
|
163061
|
163084
|
163085
|
163090
|
163469
|
163470
|
163474
|
163475
|
163476
|
163477
|
163479
|
163480
|
165911
|
165912
|
165914
|
165915
|
165916
|
165917
|
165918
|
165919
|
165920
|
165952
|
165953
|
165958
|
165959
|
166128
|
166129
|
166130
|
166131
|
166132
|
166133
|
166134
|
166135
|
166136
|
166137