]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 29 Jan 2021 18:26:03 +0000 (18:26 +0000)
commit2f76fe0b3278ecc83ab5acc44665687ca6425ed4
treeae7c0329e8eab0e21c03c51b91e6a9e129369e43
parent057e619d07b6b3a1c9091de82783b1ec5b216952
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>
(cherry picked from commit 6124adab15d39cd94e8a8c2fa9f21bde80e0e317)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/av-build-dropbox.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt