Bugzilla – Attachment 162875 Details for
Bug 36245
ILL - Custom backend form action is broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36245: Remove cud- from op
Bug-36245-Remove-cud--from-op.patch (text/plain), 1.61 KB, created by
Martin Renvoize (ashimema)
on 2024-03-07 09:49:21 UTC
(
hide
)
Description:
Bug 36245: Remove cud- from op
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-03-07 09:49:21 UTC
Size:
1.61 KB
patch
obsolete
>From 8fedb47720581e02a63b7a3cf312c8f0d9ffd0f5 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 6 Mar 2024 12:15:24 -0100 >Subject: [PATCH] Bug 36245: Remove cud- from op > >1) Install FreeForm, enable ILL module, run: >bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) >2) You'll have to switch the FreeForm branch to the one compatible with this work, i.e.: >cd /kohadevbox/koha/Koha/Illbackends/FreeForm >git checkout b_36243 >3) Restart plack: >koha-plack --restart kohadev >4) Create a new FreeForm request, visit: ><staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=FreeForm >5) Set 'type' enter '42' in cardnumber and pick a library. Click 'Create'. >6) Edit that request, click "manage request" or if #1 visit: ><staff_url>/cgi-bin/koha/ill/ill-requests.pl?op=illview&illrequest_id=1 >7) Click "Edit item metadata". Click "Submit". Notice it explodes. >9) Apply patch. Restart plack. >10) Repeat 7) > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > ill/ill-requests.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl >index 2e170b6f829..6999624c768 100755 >--- a/ill/ill-requests.pl >+++ b/ill/ill-requests.pl >@@ -443,6 +443,7 @@ if ( $backends_available ) { > } elsif ( $op eq "batch_create" ) { > # Do not remove, it prevents us falling through to the 'else' > } else { >+ $op =~ s/^cud-//; > my $request = Koha::Illrequests->find($params->{illrequest_id}); > my $backend_result = $request->custom_capability($op, $params); > $template->param( >-- >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 36245
:
162834
| 162875