From ac109913dc31ae4c65b6c8f21c9ff96462245b86 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 16 Nov 2021 08:35:22 +0000 Subject: [PATCH] Bug 29515: Make title for HTML customizations optional This adds code to make the title field for HTML customizations optional while it stays mandatory for news entries. 1) Add a new HTML customization, verify you are forced to enter a title 2) Apply patch 3) Repeat and verify that you can now save without title 4) Add a new news entry 5) Verify that the title field remained mandatory there. Signed-off-by: Barbara Johnson --- .../prog/en/modules/tools/additional-contents.tt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index 61ba7886f5..3b7bd16b9c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -211,8 +211,13 @@ [% UNLESS languages.size %]
  • - - Required + [% IF category == 'news' %] + + Required + [% ELSE %] + + + [% END %]
  • [% END %]
  • @@ -566,6 +571,7 @@