Bugzilla – Attachment 182654 Details for
Bug 39941
Adding a patron to an unauthenticated request should change the request's status to 'NEW'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39941: Set status 'NEW' when patron added to UNAUTH request
Bug-39941-Set-status-NEW-when-patron-added-to-UNAU.patch (text/plain), 1.68 KB, created by
Pedro Amorim
on 2025-05-20 10:16:00 UTC
(
hide
)
Description:
Bug 39941: Set status 'NEW' when patron added to UNAUTH request
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-05-20 10:16:00 UTC
Size:
1.68 KB
patch
obsolete
>From e2fcf814ee843f0bcf759f61ad33ddce22af5ad3 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Tue, 20 May 2025 10:09:59 +0000 >Subject: [PATCH] Bug 39941: Set status 'NEW' when patron added to UNAUTH > request > >Test plan: >1) Enable ILLModule and ILLOpacUnauthenticatedRequest >2) Log out, create an unauthenticated OPAC request, visit: > <opac_url>/cgi-bin/koha/opac-illrequests.pl?op=create&backend=Standard >3) Add all required fields. Click 'Create'. >4) Log in on intra again, visit the ILL module: > <staff_url>/cgi-bin/koha/ill/ill-requests.pl >5) Pick the request you just created and click the ID or 'Manage request' from the table. >6) Click 'Edit request'. Notice the info message is shown (Optional: Confirm that this info message is not shown any other request not UNAUTH) >7) Click 'Submit'. Repeat 5). Notice it's still 'Unauthenticated'. This is because a patron has not been added. >8) Repeat 6). Add a patron ID this time, e.g. the koha user on k-t-d: '51'. Click 'Submit'. >9) Repeat 5). Notice the status now displays 'New request'. >--- > ill/ill-requests.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl >index 0db9c09b1eb..5aa06a0cbfe 100755 >--- a/ill/ill-requests.pl >+++ b/ill/ill-requests.pl >@@ -293,6 +293,7 @@ if ($backends_available) { > request => $request, > ); > } else { >+ $request->status('NEW') if $request->status eq 'UNAUTH' && $params->{borrowernumber}; > $request->borrowernumber( $params->{borrowernumber} ); > $request->biblio_id( $params->{biblio_id} ); > $request->batch_id( $params->{batch_id} ); >-- >2.39.5
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 39941
:
182653
| 182654