Bugzilla – Attachment 168462 Details for
Bug 24471
Rename ILL method handle_commit_maybe
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24471: Rename handle_commit_maybe method
Bug-24471-Rename-handlecommitmaybe-method.patch (text/plain), 3.51 KB, created by
Pedro Amorim
on 2024-07-03 16:04:38 UTC
(
hide
)
Description:
Bug 24471: Rename handle_commit_maybe method
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-07-03 16:04:38 UTC
Size:
3.51 KB
patch
obsolete
>From b141bca874f8289e186e6f71184b7b62a35131be Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 3 Jul 2024 15:59:33 +0000 >Subject: [PATCH] Bug 24471: Rename handle_commit_maybe method > >To test (k-t-d): >1) Enable ILLModule and install FreeForm, run: > bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) >2) Checkout 24.05.x branch, run: > cd /kohadevbox/koha/Koha/Illbackends/FreeForm > git checkout 24.05.x >3) Create a new ILL request from: > http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl >4) Confirm the request creation works as before >--- > ill/ill-requests.pl | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > >diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl >index 3fac879dd4..4abde0fdb8 100755 >--- a/ill/ill-requests.pl >+++ b/ill/ill-requests.pl >@@ -157,7 +157,7 @@ if ( $backends_available ) { > whole => $backend_result, > request => $request > ); >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > } > } elsif ( $op eq 'migrate' ) { > # We're in the process of migrating a request >@@ -187,7 +187,7 @@ if ( $backends_available ) { > request => $request > ); > } >- handle_commit_maybe( $backend_result, $request ); >+ redirect_user( $backend_result, $request ); > > } elsif ( $op eq 'confirm' ) { > # Backend 'confirm' method >@@ -200,7 +200,7 @@ if ( $backends_available ) { > ); > > # handle special commit rules & update type >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > > } elsif ( $op eq 'cud-cancel' ) { > # Backend 'cancel' method >@@ -213,7 +213,7 @@ if ( $backends_available ) { > ); > > # handle special commit rules & update type >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > > } elsif ( $op eq 'cud-edit_action' ) { > $op =~ s/^cud-//; >@@ -279,7 +279,7 @@ if ( $backends_available ) { > next => 'illlist', > value => {} > }; >- handle_commit_maybe( $backend_result, $request ); >+ redirect_user( $backend_result, $request ); > } > } > >@@ -321,7 +321,7 @@ if ( $backends_available ) { > ); > > # handle special commit rules & update type >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > > } elsif ( $op eq 'cud-generic_confirm' ) { > $op =~ s/^cud-//; >@@ -383,7 +383,7 @@ if ( $backends_available ) { > }; > > # handle special commit rules & update type >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > } elsif ( $op eq 'cud-check_out') { > $op =~ s/^cud-//; > my $request = Koha::ILL::Requests->find($params->{illrequest_id}); >@@ -471,7 +471,7 @@ if ( $backends_available ) { > ); > > # handle special commit rules & update type >- handle_commit_maybe($backend_result, $request); >+ redirect_user($backend_result, $request); > } > } > >@@ -484,7 +484,7 @@ $template->param( > > output_html_with_http_headers( $cgi, $cookie, $template->output ); > >-sub handle_commit_maybe { >+sub redirect_user { > my ( $backend_result, $request ) = @_; > > # We need to special case 'commit' >-- >2.39.2
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 24471
:
97678
|
115252
|
168462
|
168525
|
169994