#75576EXT:form - inArray Validator broken
Description
The inArray Validator is broken since this patch.
Example form to test:
enctype = multipart/form-data
method = post
prefix = tx_form
confirmation = 0
postProcessor {
1 = mail
1 {
recipientEmail = test@test.de
senderEmail = sender@test.de
subject = Form
}
}
10 = SELECT
10 {
name = attention
placeholder = Wie sind Sie auf uns aufmerksam geworden
class = form-control
label {
value = Aufmerksam geworden
}
10 = OPTION
10 {
text = Wie sind Sie auf uns aufmerksam geworden? *
}
20 = OPTION
20 {
text = Anzeige Online
value = Anzeige Online
}
30 = OPTION
30 {
text = Freunde & Bekannte
value = Freunde & Bekannte
}
40 = OPTION
40 {
text = Empfehlung
value = Empfehlung
}
50 = OPTION
50 {
text = Persönlicher Kontakt
value = Persönlicher Kontakt
}
60 = OPTION
60 {
text = Anzeige Print
value = Anzeige Print
}
}
20 = SUBMIT
20 {
name = submit
value = Senden
class = btn btn-white btn-red-outline
}
rules {
1 = inarray
1 {
showMessage = 1
message = *
error = Error!
element = attention
array {
1 = Anzeige Online
2 = Freunde & Bekannte
3 = Empfehlung
4 = Persönlicher Kontakt
5 = Anzeige Print
}
}
}