From cb95c9140316d4b9dc28cd696d14106b460774aa Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 22 Dec 2020 19:28:28 +0000 Subject: [PATCH] Bug 27297: Add required and blank options to av-build-dropbox.inc This patch adds two options to av-build-drobx required - which will add the required attribute to the select blank - which will add a blank option to avoid preselecting others To test: 1 - In OpacSuggestionMandatoryFeilds select itemtype 2 - Go to OPAC 3 - Add a suggestion 4 - Don't fill out any fields 5 - Submit 6 - Suggestion is added 7 - Delete it 8 - Apply patch 9 - Add a suggestion 10 - Note itemtyp edefaults to 'None' 11 - You cannot submit until you select a value Signed-off-by: Barbara Johnson Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc | 9 ++++++++- .../opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc index 8e88cb55fc..9b833fcfe0 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc @@ -10,7 +10,14 @@ [% DEFAULT class = '' size = 20 %] [% IF avs %] - + [% ELSE %] +