From 90cd0e4ccf27e37526d9053b75ce7073cc13b0c7 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) Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- ill/ill-requests.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 4a68552767..8dc24d5842 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -444,6 +444,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.39.5