CheckboxList doesn't work anymore

Notice: This thread is very old.
thorewi
Member | 84
+
0
-

Hi,

I think the problem is in Nette\Forms\Helpers::generateHtmlName(), because it doesn't add [] at the end of HTML name and then it fails in Nette\Forms\Helpers::extractHttpData on line 40

if (substr($htmlName, -2) === '[]') {

Version: 2.1dev

Last edited by thorewi (2013-07-18 11:18)

thorewi
Member | 84
+
0
-

ok I fixed it but I don't know where to put it.

Last edited by thorewi (2013-07-18 13:40)

enumag
Member | 2118
+
0
-

Which checkboxlist implementation do you have in mind? I personally prefer this one.

thorewi
Member | 84
+
0
-
enumag
Member | 2118
+
0
-

Send a pull request to that repository then.

thorewi
Member | 84
+
0
-

Ok, I'm not sure whether this fix of mine doesn't work only with the latest build (because I think this new form implementation is little bit BC break), but hope not…