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
I have a switch field named is_activated in the User form that gets disabled once the user is activated. In my User model, I also have a default value for the attribute is_activated:
However, for some reason, when I submit the form (context is always update) the disabled switch is submitted too and the value false is saved for the field is_activated. Thus the user is not activated anymore.
Request payload:
How can I solve? Thanks.
Steps to replicate
Add a switch field.
Disable it somehow.
Submit.
Workaround
The solution, for now, seems to be to not disable form fields.
The text was updated successfully, but these errors were encountered:
Winter CMS Build
1.2
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
Hi there,
I have a switch field named
is_activated
in theUser
form that gets disabled once the user is activated. In myUser
model, I also have a default value for the attributeis_activated
:However, for some reason, when I submit the form (context is always
update
) the disabled switch is submitted too and the valuefalse
is saved for the fieldis_activated
. Thus the user is not activated anymore.Request payload:
How can I solve? Thanks.
Steps to replicate
Workaround
The solution, for now, seems to be to not disable form fields.
The text was updated successfully, but these errors were encountered: