-
Description:Using a Boolean type field with custom values, Nova is unable to filter by true value. Detailed steps to reproduce the issue on a fresh Nova installation:Example Model:
Boolswitch class is a legacy class as some bool we use has different true/false values. In this example, the database is saved with on/off values.
Nova model:
If i try to filter for false value ('off') seems to work, but it doesnt return any result while set to true value (on) I tried as well with a custom filter, a simple select on/off but that didnt worked too. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Since we can't 100% verify the correct query to be used for the filter you need to manually handle it. The filterable Boolean field should return |
Beta Was this translation helpful? Give feedback.
Since we can't 100% verify the correct query to be used for the filter you need to manually handle it. The filterable Boolean field should return
true
andfalse
as$value
and you need to handle the query manually.