Closed rabauss closed 2 years ago
If you define boolean fields with correct sql in the dca ('sql' => ['type' => 'boolean', 'default' => false]) at the moment the output when formatting the value will be yes if the value is false (in the database 0 and not '')
'sql' => ['type' => 'boolean', 'default' => false]
yes
false
0
''
Yes, I was not sure how strict we want to be :-) Could be also:
return !empty($varValue) ? $GLOBALS['TL_LANG']['MSC']['yes'] : $GLOBALS['TL_LANG']['MSC']['no'];
Tagged as 4.25.19, thanks @rabauss !
If you define boolean fields with correct sql in the dca (
'sql' => ['type' => 'boolean', 'default' => false]
) at the moment the output when formatting the value will beyes
if the value isfalse
(in the database0
and not''
)