CheckboxList doesn't work anymore

Notice: This thread is very old.

7 years ago

thorewi
Bronze Partner | 87
+
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)

7 years ago

thorewi
Bronze Partner | 87
+
0
-

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

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

7 years ago

enumag
Member | 2129
+
0
-

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

7 years ago

thorewi
Bronze Partner | 87
+
0
-

7 years ago

enumag
Member | 2129
+
0
-

Send a pull request to that repository then.

7 years ago

thorewi
Bronze Partner | 87
+
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…