-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 - Wrong ID generated for the elements of subform when we click on Plus (+) button to add repeated subform #25387
Comments
Just a question: Does this behavior lead to any issues/errors/malfunctions? |
…k on Plus (+) button to add repeated subform joomla#25387
No, this behavior does not leads to any issue or error in Joomla core but the behavior is not gerneric in both the cases i.e Standard form and the sub-form which leads to difficulties for the extension developer to predict the behavior and impliment the solutions of thair problems. |
Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/25387 |
please test #25398 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25387. |
…k on Plus (+) button to add repeated subform joomla#25387 joomla#25398
…k on Plus (+) button to add repeated subform joomla#25387 joomla#25398
…k on Plus (+) button to add repeated subform joomla#25387 joomla#25398
…k on Plus (+) button to add repeated subform joomla#25387 joomla#25398
Steps to reproduce the issue
Expected result
The id of the field in subform was expected to be without any hyphen in it "jform_com_tjucm_sample_subform__com_tjucm_sample_subform1__repetable_subform_test"
Actual result
The id of the input element contains hyphen if the field name contains a hyphen
"jform_com_tjucm_sample_subform__com_tjucm_sample_subform1__repetable_subform-test"
System information (as much as possible)
Latest Joomla
Additional comments
getId() function in class FormField has the code which replaces all the non-word characters in the id of an element to underscore.
Such code is missing in the "subform-repeatable.js" which generated the clone of the fields in the subform
The text was updated successfully, but these errors were encountered: