Bug description
When saving the Toggle-Fieldtype, false is always set, even if the condition does not apply. We would have expected that the value is not saved at all or with its originally specified default value true
-
handle: hide_image_topfield:
type: toggledisplay: 'Hide Image'default: truefilterable: falseinstructions_position: abovelistable: hiddenvisibility: visibleif:
type: 'equals highlight'
How to reproduce
Create a Toggle-Fieldtype with default: true and a condition that hides the field for example: id: 'not empty' and save
Logs
No response
Versions
Statamic 3.3.20
Laravel 9.20.0
PHP 8.1.8
Installation
Existing Laravel app
Antlers Parser
No response
Additional details
No response
Bug description
When saving the Toggle-Fieldtype,
falseis always set, even if the condition does not apply. We would have expected that the value is not saved at all or with its originally specified default valuetrueHow to reproduce
Create a Toggle-Fieldtype with
default: trueand a condition that hides the field for example:id: 'not empty'and saveLogs
No response
Versions
Statamic 3.3.20
Laravel 9.20.0
PHP 8.1.8
Installation
Existing Laravel app
Antlers Parser
No response
Additional details
No response