At first glance, would any of you know what this means?
No associative arrays allowed multiple=true
I do now, but if you haven't seen this before it may be a bit confusing (
see actual code here). Basically, all you see is that line above with a stack trace. It turns out that this is a very logical error validation, but the message could be improved, in my opinion.
Basically: When passing an array of current values to a ListboxField() (when you set it up to allow multiple values), it's checking to make sure you don't accidentally give it an associative array. There's one key word missing from that error message: "values". I'd suggest maybe changing this error to something a bit more like:
No associative arrays are allowed as values (when multiple=true).
That should make it easier to figure out what on earth just happened. It was confusing because I didn't receive the error until after saving my form, so it seemed fairly random.
I've already submitted like3 PR's in the past few days so I'm not sure I want to annoy you guys with another one if it's not worth it :)