Bug 34478: Rename action with op - admin/columns_settings

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-01-26 10:06:20 +01:00
parent b091b70724
commit 7379014e2b
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 5 additions and 5 deletions

View File

@ -17,9 +17,9 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
}
);
my $action = $input->param('action') // 'list';
my $op = $input->param('action') // 'list';
if ( $action eq 'cud-save' ) {
if ( $op eq 'cud-save' ) {
my $module = $input->param('module');
my @columnids = $input->multi_param("columnid");
my @columns;
@ -68,10 +68,10 @@ if ( $action eq 'cud-save' ) {
}
}
$action = 'list';
$op = 'list';
}
if ( $action eq 'list' ) {
if ( $op eq 'list' ) {
my $modules = C4::Utils::DataTables::TablesSettings::get_modules;
$template->param(
panel => scalar $input->param('module'),

View File

@ -14,7 +14,7 @@
<div class="pagelist">
<form method="post" action="/cgi-bin/koha/admin/columns_settings.pl">
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="action" value="save" />
<input type="hidden" name="op" value="cud-save" />
<input type="hidden" name="module" value="[% modulename | html %]" />
[% IF module.keys and module.keys.size > 0 %]
[% FOR pagename IN module.keys.sort %]