From c4ad20ce1045aed15adf881c0b8e90784c5b774a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Jan 2024 11:35:20 +0100 Subject: [PATCH] Bug 34478: Rename action with op - circ/request-article Signed-off-by: Jonathan Druart --- circ/request-article.pl | 4 ++-- .../intranet-tmpl/prog/en/modules/circ/request-article.tt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circ/request-article.pl b/circ/request-article.pl index 051d13f9d6..a55eb873ee 100755 --- a/circ/request-article.pl +++ b/circ/request-article.pl @@ -42,7 +42,7 @@ my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( } ); -my $action = $cgi->param('action') || q{}; +my $op = $cgi->param('op') || q{}; my $biblionumber = $cgi->param('biblionumber'); my $patron_cardnumber = $cgi->param('patron_cardnumber'); my $patron_id = $cgi->param('borrowernumber'); @@ -56,7 +56,7 @@ my $patron = : $patron_cardnumber ? Koha::Patrons->find( { cardnumber => $patron_cardnumber } ) : undef; -if ( $action eq 'create' ) { +if ( $op eq 'cud-create' ) { my $borrowernumber = $cgi->param('borrowernumber'); my $branchcode = $cgi->param('branchcode'); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt index 02a20b4f71..f92d2ad035 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt @@ -118,7 +118,7 @@ [% END %]
[% INCLUDE 'csrf-token.inc' %] - + -- 2.39.5