You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when the field is rendered using a model where the accepted column is null, the option that gets selected is Rejected, i.e. false, when it should be Pending Decision, i.e. null.
What am I missing here?! Is there a way to force a 'strict' comparison so that null is not equated to false?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a
radios
form field mapped to a nullable 'boolean' i.e. tinyint(1) column, namedaccepted
.The value of the column can therefore be either
null
,0
(false
) or1
(true
).My
radios
form field is configured as follows:However, when the field is rendered using a model where the
accepted
column isnull
, the option that gets selected is Rejected, i.e.false
, when it should be Pending Decision, i.e.null
.What am I missing here?! Is there a way to force a 'strict' comparison so that
null
is not equated tofalse
?Many thanks.
Regards,
Matt.
Beta Was this translation helpful? Give feedback.
All reactions