From 3b5befed210086d9e2e1fa5777af288a0f135d49 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 --- .../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 @@