getgrav / grav-learn

Grav Learn (exhaustive grav documentation)
http://learn.getgrav.org
MIT License
233 stars 789 forks source link

Fix select field validation when `multiple` is set to true #973

Closed jgonyea closed 2 years ago

jgonyea commented 2 years ago

If validate.type: array is on a single line, validation always fails for a multiple select, resulting in no data being saved.

Breaking up the validate and type onto separate lines fixes this issue.

mahagr commented 2 years ago

Well, we usually use shortcuts to point out what to do, but yeah, this example should be better.