Bug 36416: Fix cud-check_out
1) Install FreeForm and enable ILLModule, run: bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) 2) Checkout to branch b_36243 cd /kohadevbox/koha/Koha/Illbackends/FreeForm git checkout b_36243 3) Enable CirculateILL sys pref 4) Create a new ILL request, visit: <staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=FreeForm 5) Set "type" = Book and enter '42' on the cardnumber input, click "Create" 6) On the top toolbar, click "Confirm" and confirm the following screen. 7) You now have a new option "Check out" on the toolbar. Click on it. Notice it explodes. 8) Apply patch. Repeat. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
80beaf875b
commit
7eb9807334
|
|
@ -2158,6 +2158,7 @@ sub get_op_param_deprecation {
|
|||
$op = 'cud-generic_confirm' if $op eq 'generic_confirm';
|
||||
$op = 'cud-cancel' if $op eq 'cancel';
|
||||
$op = 'cud-delete' if $op eq 'delete';
|
||||
$op = 'cud-check_out' if $op eq 'check_out';
|
||||
}
|
||||
return $op;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -369,6 +369,7 @@ if ( $backends_available ) {
|
|||
# handle special commit rules & update type
|
||||
handle_commit_maybe($backend_result, $request);
|
||||
} elsif ( $op eq 'cud-check_out') {
|
||||
$op =~ s/^cud-//;
|
||||
my $request = Koha::ILL::Requests->find($params->{illrequest_id});
|
||||
my $backend_result = $request->check_out($params);
|
||||
$template->param(
|
||||
|
|
|
|||
Loading…
Reference in New Issue