From 65b73ac349c88e8785b5e8b0eab2b2175b50b7a3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 10 Dec 2024 13:22:33 +0000 Subject: [PATCH] Bug 31450: Make additional contents publication date required HTML customizations and news will not display without a publication date, so we should make it required. This patch adds client-side validation of the field to check that it's filled. To test, apply the patch and go to Tools -> News (or HTML customizations, or Pages). - Click "New entry" - Try to submit this new entry without entering a publication date. - You should be prevented from submitting the form. - Fill in the publication date and confirm that the form submits correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: Brendan Lawlor Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer (cherry picked from commit 1b1e96a17c0daff55e39a87f982fff896582fc72) Signed-off-by: Paul Derscheid Signed-off-by: Alex Buckley --- .../prog/en/modules/tools/additional-contents.tt | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 7ae7c79658..91d042a2ed 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 @@ -222,7 +222,7 @@ [% END %] -
+ [% INCLUDE 'csrf-token.inc' %] @@ -262,8 +262,9 @@ [% END %]
  • - - + + + Required
    [% INCLUDE 'date-format.inc' %]