New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subform duplicated when Saved if subform had (child) subform too #35721
Comments
I've also replicated this problem with Joomla 4.0.3, used inside a config.xml |
I can confirm, |
please test #35726 |
Hi Fedik, I can confirm that #35726 solves the duplication of subforms when saved, but it breaks showon functionality now. Add a second field to the (child) subform with showon condition, which refers to the 1st field of this (child) subform. Condition: showon="first_field!:" (ie. if 1st field empty, 2nd field shouldn't appear). Also noticed: if a field with showon condition displayed while it shouldn't, and this field is a radio button group (the fancy one), then these buttons are not clickable. I guess, this is a side effect of JS implementation of "showon". |
Note: the problem can be reproduced only if a template has subforms in its templateDetails.xml, and you try to modify/save template parameters. So, I've provided a very minimalistic template (no front-end fancyness) to demonstrate the issue. Use that for testing.
Steps to reproduce the issue
Expected result
Actual result
System information (as much as possible)
Apche 2.4.46
PHP 8.03
MySQL 5.6.17
Joomla! 4.03
Additional comments
That suggests maybe this is an error caused by Save: duplicated entries got pushed into the DB, and after page refreshed, DB sent back 2 subforms. Didn't have time for more debugging though.
The text was updated successfully, but these errors were encountered: