You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the checkboxes live at form.taco_test.professions, so a single checkbox should be at eg. form.taco_test.professions.66.
The resulting checkboxes have name="taco_test[professions][][]", with a double [][]. Their values are correct.
I know the last [] are added in ChoiceType::buildCheckableChildren(), but maybe it's the first [] that's actually wrong. I've no idea where that comes from.
I'm using 1.6.50 and I'm having some dependency problems, so I can't update in this context to try newer version, but the ChoiceType code seems to be the same in HEAD.
The text was updated successfully, but these errors were encountered:
If I dd($taco_test); before adding it to the parent form, I can see all checkboxes' names:
#name: "professions[]"
That [] comes from buildCheckableChildren() and I think it's correct, so it seems another is added after it... << That doesn't seem to be true, but I really don't get it.
My form simplified:
So the checkboxes live at
form.taco_test.professions
, so a single checkbox should be at eg.form.taco_test.professions.66
.The resulting checkboxes have
name="taco_test[professions][][]"
, with a double[][]
. Their values are correct.I know the last
[]
are added inChoiceType::buildCheckableChildren()
, but maybe it's the first[]
that's actually wrong. I've no idea where that comes from.I'm using 1.6.50 and I'm having some dependency problems, so I can't update in this context to try newer version, but the
ChoiceType
code seems to be the same in HEAD.The text was updated successfully, but these errors were encountered: