From 2d19bfb0522c16edb7d018a98746e2fd9c5ce7af 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 Signed-off-by: Martin Renvoize Signed-off-by: Fridolin Somers --- .../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 0337278569..92fcf23cc9 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 @@ -199,8 +199,13 @@ [% UNLESS languages.size %]
  • - - Required + [% IF category == 'news' %] + + Required + [% ELSE %] + + + [% END %]
  • [% END %]
  • @@ -554,6 +559,7 @@