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
Fix showon for frontend #15202
Fix showon for frontend #15202
Conversation
I have tested this item ✅ successfully on a12fd37 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15202. |
ok for Protostar: "Google Font for Headings" This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15202. |
@AlexRed the fields you are talking about do not exist in that form so that form is working as intended. there is no showon stuff in that form https://github.com/joomla/joomla-cms/blob/staging/components/com_config/model/form/config.xml So if you feel that those fields should exist in that view it is a different issue to showon that this PR fixes |
ok, sorry |
I have tested this item ✅ successfully on a12fd37 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15202. |
@brianteeman is right here in that this is the main reason it doesn't work 😄
(https://github.com/joomla/joomla-cms/blob/staging/components/com_config/view/config/tmpl/default_seo.php#L14-L23) |
RTC after two successful tests. |
Just on a quick code review and no more (so might be talking rubbish) - is it possible to have a form control and group with the same name, in that case would this start to cause issues? |
The formcontrol usually is just "jform". If we have both the group and form with the same name, it should still work but if we have one form without groups and another one without formcontrol and they have the same names, then it may become an issue. |
Pull Request for Issue #15183 .
Summary of Changes
Taking care of the case where we have no formcontrol but a group.
Testing Instructions
Expected result
Showon works as expected in all places
Actual result
Showon doesn't work in frontend template editing
Documentation Changes Required
None