]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 20 Jan 2021 08:59:25 +0000 (09:59 +0100)
commit6124adab15d39cd94e8a8c2fa9f21bde80e0e317
tree07a66add8649a6cc619d3ece71d736a8b0b84739
parentdea3855db6b07861613e9b729926bab6fb39e5f1
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>
(cherry picked from commit cb95c9140316d4b9dc28cd696d14106b460774aa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt