From 63fcbb0692c0be308d59085bd510f181ea5b67ef Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 30 Jan 2024 11:08:24 +0100 Subject: [PATCH] Bug 34478: Rename action with op - import_export_framework Signed-off-by: Jonathan Druart --- admin/import_export_framework.pl | 6 +++--- .../intranet-tmpl/prog/en/modules/admin/biblio_framework.tt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/import_export_framework.pl b/admin/import_export_framework.pl index 47b5a037d0..159ff08f59 100755 --- a/admin/import_export_framework.pl +++ b/admin/import_export_framework.pl @@ -41,10 +41,10 @@ unless ($auth_status eq 'ok') { } my $frameworkcode = $input->param('frameworkcode') || 'default'; -my $action = $input->param('action') || 'cud-export'; +my $op = $input->param('op') || 'export'; ## Exporting -if ($action eq 'cud-export' && $input->request_method() eq 'GET') { +if ($op eq 'export') { my $strXml = ''; my $format = $input->param('type_export_' . $frameworkcode); if ($frameworkcode eq 'default') { @@ -68,7 +68,7 @@ if ($action eq 'cud-export' && $input->request_method() eq 'GET') { print $strODS; } ## Importing -} elsif ($input->request_method() eq 'POST') { +} elsif ($op eq 'cud-import') { my $ok = -1; my $fieldname = 'file_import_' . $frameworkcode; my $filename = $input->param($fieldname); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt index 00dc32dfc7..55f68e3ff2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt @@ -234,7 +234,7 @@ [% INCLUDE 'csrf-token.inc' %] @@ -305,7 +305,7 @@ [% INCLUDE 'csrf-token.inc' %] -- 2.39.5