yiisoft / yii2-bootstrap4

Yii 2 Bootstrap 4 Extension
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
216 stars 106 forks source link

Fix: Show error on empty checkboxList/radioList field #204

Closed matrozov closed 1 year ago

matrozov commented 4 years ago
Q A
Is bugfix? yes
New feature? no
Breaks BC? no
Tests pass? no

If an error occurs on an empty checboxList/radioList field, no error message is displayed, since the current implementation of error output in yii2-bootstrap4 is bound to the last displayed item. This fix disables the logic of replacing a field template if the list is empty.

samdark commented 3 years ago

Is it solved by https://github.com/yiisoft/yii2-bootstrap4/commit/d1af1e2db4481a3ae523a35a6b5cb0b30a56f13b?