From b3c46d527b72f57627b95aee3310cc4899079dec Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 22 Jan 2024 11:13:41 +0000 Subject: [PATCH] Bug 34478: Manual fix - label-edit-layout (cud-save) Also updated 'cud-edit' in the controller back to 'edit' as it's a 'get' request to display the form.. i.e. read not create, write or update. Signed-off-by: Jonathan Druart --- .../prog/en/modules/labels/label-edit-layout.tt | 7 ++++--- labels/label-edit-layout.pl | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt index c5e53d34ef..a7fa1a488d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tt @@ -72,7 +72,7 @@

New label layout

[% END %] -
+
  1. @@ -213,10 +213,11 @@
+ [% INCLUDE 'csrf-token.inc' %] + + Cancel - -
diff --git a/labels/label-edit-layout.pl b/labels/label-edit-layout.pl index 1904a49e33..633475caa2 100755 --- a/labels/label-edit-layout.pl +++ b/labels/label-edit-layout.pl @@ -86,7 +86,7 @@ sub _select_format_string { # generate field table based on format_string return (\@fields, $field_count); } -if ($op eq 'cud-edit') { +if ($op eq 'edit') { warn sprintf("Error performing '%s': No 'layout_id' passed in.", $op) unless ($layout_id); $layout = C4::Labels::Layout->retrieve(layout_id => $layout_id); -- 2.39.5