From 3b1b0b6c887b4f7e8e989c3a830efbe265cee2c3 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 | 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 %] +