From 58833531106a5c738ffbb9979302508aa587f5fa Mon Sep 17 00:00:00 2001 From: Pedro Amorim 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: /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: /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) --- 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.30.2