mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Fixes #14230: Fixed itemsOptions ignored in checkBoxList
This commit is contained in:
committed by
Alexander Makarov
parent
421bd96e99
commit
a8bfe8bbe6
@ -4,6 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.16 under development
|
||||
------------------------
|
||||
|
||||
- Bug #14230: Fixed `itemsOptions` ignored in `checkBoxList` (s1lver)
|
||||
- Bug #14368: Added `role` attribute for active radio list (s1lver)
|
||||
- Bug #16680: Fixed ActiveField 'text' input with maxlength (s1lver)
|
||||
- Bug #5341: HasMany via two relations (shirase, cebe)
|
||||
|
||||
@ -958,10 +958,10 @@ class BaseHtml
|
||||
if ($formatter !== null) {
|
||||
$lines[] = call_user_func($formatter, $index, $label, $name, $checked, $value);
|
||||
} else {
|
||||
$lines[] = static::checkbox($name, $checked, array_merge($itemOptions, [
|
||||
$lines[] = static::checkbox($name, $checked, array_merge([
|
||||
'value' => $value,
|
||||
'label' => $encode ? static::encode($label) : $label,
|
||||
]));
|
||||
], $itemOptions));
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user