Fix issue where passing ['uncheckValue' => null] to BsActiveForm::checkBoxList
Justin Cherniak
Branch: threelakessoftware/yii-bootstrap-3-module:master
Branch: DrMabuse/yii-bootstrap-3-module:master
Merged
Merged pull request
Merged in threelakessoftware/yii-bootstrap-3-module (pull request #37)
When passing ['uncheckValue' => null] to BsActiveForm::checkBoxList, it causes the hidden fields to still be drawn. This is due to the isset() call in BsArray::popValue.
isset($arr[$key])
returns false if$key
is not in the array OR if the value is null. Using array_key_exists functions as is expected.