From 51b73e85d7d6aeb7be93d0814e0cb3494d1803ee 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 --- .../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 d5537d3928..6e952e5d0d 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 @@ -220,7 +220,7 @@ [% END %] -
+ [% INCLUDE 'csrf-token.inc' %] @@ -260,8 +260,9 @@ [% END %]
  • - - + + + Required
    [% INCLUDE 'date-format.inc' %]
  • -- 2.39.5