Commit 5a9823a5 by Alexander Makarov

A bit less stricter check as suggested by @qiang:…

parent edf98ced
...@@ -1167,7 +1167,7 @@ class BaseHtml ...@@ -1167,7 +1167,7 @@ class BaseHtml
$options['uncheck'] = '0'; $options['uncheck'] = '0';
} }
$checked = ($value !== $options['uncheck']); $checked = ($value != $options['uncheck']);
if (!array_key_exists('id', $options)) { if (!array_key_exists('id', $options)) {
$options['id'] = static::getInputId($model, $attribute); $options['id'] = static::getInputId($model, $attribute);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment