From 545d38380f219e2eb81ebff679a61f63c7df3fa9 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 --- koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc | 9 ++++++++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- 2 files changed, 9 insertions(+), 2 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..0bcf878792 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,8 +10,15 @@ [% DEFAULT class = '' size = 20 %] [% IF avs %] - + [% ELSE %] +