From 590e235fce0b626d8e34c5f8a398dd87a4254bb4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Jan 2024 11:02:56 +0100 Subject: [PATCH] Bug 34478: Rename action with op - admin/library_groups This is a bit dirty but it works. form is not styling correctly when put within the li Signed-off-by: Jonathan Druart --- admin/library_groups.pl | 8 ++--- .../prog/en/modules/admin/library_groups.tt | 33 ++++++++++++++----- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/admin/library_groups.pl b/admin/library_groups.pl index be46eacb99..5531689336 100755 --- a/admin/library_groups.pl +++ b/admin/library_groups.pl @@ -38,10 +38,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $action = $cgi->param('action') || q{}; +my $op = $cgi->param('op') || q{}; my @messages; -if ( $action eq 'cud-add' ) { +if ( $op eq 'cud-add' ) { my $parent_id = $cgi->param('parent_id') || undef; my $title = $cgi->param('title') || undef; my $description = $cgi->param('description') || undef; @@ -81,7 +81,7 @@ if ( $action eq 'cud-add' ) { } } } -elsif ( $action eq 'cud-edit' ) { +elsif ( $op eq 'cud-edit' ) { my $id = $cgi->param('id') || undef; my $title = $cgi->param('title') || undef; my $description = $cgi->param('description') || undef; @@ -111,7 +111,7 @@ elsif ( $action eq 'cud-edit' ) { $template->param( edited => $group ); } } -elsif ( $action eq 'cud-delete' ) { +elsif ( $op eq 'cud-delete' ) { my $id = $cgi->param('id'); my $group = Koha::Library::Groups->find($id); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt index 2810ee4feb..85e12cfb72 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt @@ -103,7 +103,8 @@