Open padalec opened 10 years ago
Hi all, I founded bug when I tried to set default value for checkbox. Example:
array( 'type' => 'checkbox', 'name' => 'example', 'label' => 'example, 'items' => array(1,2,3,4), 'default' => array(1), );
this doesn't work. But I found fixes for this in /views/control/checbox.php line 5 from:
$checked = (in_array($item->value, $value));
should be replaced to:
$checked = (in_array($item->value, $default));
Regards
But my fix doesn't work when request is send by AJAX
Hi all, I founded bug when I tried to set default value for checkbox. Example:
this doesn't work. But I found fixes for this in /views/control/checbox.php line 5 from:
should be replaced to:
Regards