Fix issue where passing ['uncheckValue' => null] to BsActiveForm::checkBoxList

Merged
#37 · Created  · Last updated

Merged pull request

Merged in threelakessoftware/yii-bootstrap-3-module (pull request #37)

1a18cae·Author: ·Closed by: ·2016-04-29

Description

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.

0 attachments

0 comments

Loading commits...