From 8cff9b57dd181bbd572f7be9a7c5476e1ec0104c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 22 Jan 2024 11:52:58 +0000 Subject: [PATCH] Bug 34478: Manual fix - label-edit-template (cud-save) Signed-off-by: Jonathan Druart --- .../prog/en/modules/labels/label-edit-template.tt | 7 ++++--- labels/label-edit-template.pl | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt index 148e7d2d2d..900a7d15e5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-template.tt @@ -55,7 +55,7 @@

New label template

[% END %] -
+
@@ -177,11 +177,12 @@
- Cancel - + [% INCLUDE 'csrf-token.inc' %] + [% IF ( template_id ) %] [% END %] + Cancel
diff --git a/labels/label-edit-template.pl b/labels/label-edit-template.pl index a6865f0f28..2721a1dbaa 100755 --- a/labels/label-edit-template.pl +++ b/labels/label-edit-template.pl @@ -44,7 +44,7 @@ my $profile_list = undef; my $units = get_unit_values(); -if ($op eq 'cud-edit') { +if ($op eq 'edit') { $label_template = C4::Labels::Template->retrieve(template_id => $template_id); $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => { template_id => [ $template_id, '' ], creator => 'Labels'} } ); push @$profile_list, {paper_bin => 'N/A', profile_id => 0, printer_name => 'No Profile'}; -- 2.39.5