contao/import — Issue #3500: Issue in FormCheckBox
Author: aschempp
Created: 2011-11-29 21:41:56+00:00
State: open
Labels: Defect, frontend

FormCheckBox Widget has the following statement on line 148ff

```
// Clear result if nothing has been submitted
if (!isset($_POST[$this->strName]))
{
$this->varValue = '';
}
```

however, that fails if the widget name is something like `countries[0][something]`.

Array-type widget names are explicitly supported in Widget class on line 456. I don't see a reason for this rule, as we also have a hidden field so `isset()` should always return true.

--- _Originally created on September 22nd, 2011, at 09:39pm (ID 3500)_