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:
parent
b091b70724
commit
7379014e2b
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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 %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue