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
When I set autosaveDrafts to false, toggling a checkbox or a lightswitch, with conditional fields attached to its state, inside a matrix, doesn't work : the fields that are shown don't switch, and the call to /index.php?p=admin%2Factions%2Felements%2Fupdate-field-layout&v=1730400650789 returns a 400 with this output :
This happens every time when autosaveDrafts is set to false, but I've also seen it happen a few times when it's enabled, but I haven't been able to really reproduce it in a repeatable way...
Steps to reproduce
set autsaveDrafts to false
Create a matrix with an entry type that contains a lightbox and two other fields, with conditional rules between the three
In the CP create an entry, add the matrix, and try to toggle the switch with the devtools opened
What happened?
Description
When I set autosaveDrafts to false, toggling a checkbox or a lightswitch, with conditional fields attached to its state, inside a matrix, doesn't work : the fields that are shown don't switch, and the call to /index.php?p=admin%2Factions%2Felements%2Fupdate-field-layout&v=1730400650789 returns a 400 with this output :
This happens every time when autosaveDrafts is set to false, but I've also seen it happen a few times when it's enabled, but I haven't been able to really reproduce it in a repeatable way...
Steps to reproduce
autsaveDrafts
to falseAlternatively, here is a minimal github repo to easily reproduce it : https://github.com/ajoliveau/bug-conditional-craft
I only did :
ddev config --project-type=craftcms --docroot=web
ddev composer create -y "craftcms/craft"
autosaveDrafts
Expected behavior
Fields with conditional rendering conditions should work as intented
Actual behavior
Conditionals are not working
Craft CMS version
5.4.9
PHP version
8.2.24
Operating system and version
Linux 6.11.5-arch1-1
Database type and version
MariaDB 10.11.9
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
None
The text was updated successfully, but these errors were encountered: