Bug 27297: Add required and blank options to av-build-dropbox.inc
authorNick Clemens <nick@bywatersolutions.com>
Tue, 22 Dec 2020 19:28:28 +0000 (19:28 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Jan 2021 15:03:34 +0000 (16:03 +0100)
commitcb95c9140316d4b9dc28cd696d14106b460774aa
tree32c32aca823e5247ee2a1b595aedf1e728110417
parenta26d529a2bc7faee3743b4cd1e603ba29411a0b9
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 <barbara.johnson@bedfordtx.gov>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt