Closed
Closed
Copy link
Description
After upgrading from 2.7.7 to 2.7.8 I noticed that some choice fields didn't display the empty value.
Example code:
->add('buyback', 'choice', [
'choices' => [
'Yes' => true,
'No' => false,
],
'choices_as_values' => true,
'required' => false,
]);
So far I've found out that the false
value is converted to empty string in this line v2.7.7...v2.7.8#diff-780e59a429c485d2d3b8a37fdf62ac59R79.
I think that the false
value is displayed instead of empty value because of that.
This bug was introduced in #16705.