Skip to content
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

Bug #27080 fix: Incorect id generated for input fields in repetable s… #27081

Merged
merged 2 commits into from Nov 25, 2019

Conversation

ankushmaherwal
Copy link
Contributor

Bug #27080

Summary of Changes
For repetable subform if the name of any field in the subform contains hyphen (-) then the id of the clone is not generated correctly.

If we click on (+) button to add the clone of the subform then the id of the field with hyphen (-) in name do not contain correct number of the clone, instead X is shown in the id.

Testing Instructions
Check the value of id attribute of input element in repetable subform after clicking the plus (+) button to add new clone of sub-form with a field having name hyphen (-) in it.

E.g If we have repetable subform field named as 'office-address' then the id of the elements in the cloned set should be like this 'jform_office_address__office_address1__address' but it is generated as 'jform_office_address__office_addressX__address'

Expected result
The value of id attribute of input element should contain clone number and not X

Actual result
The clone number for the field is not getting replaced with X

Documentation Changes Required
no change required in documentation

@BPBlueprint
Copy link

I have tested this item ✅ successfully on 64c3c90

Seems to work!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27081.

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 64c3c90


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27081.

@alikon
Copy link
Contributor

alikon commented Nov 21, 2019

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27081.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Nov 21, 2019
@amit4106udale
Copy link

I have tested this item ✅ successfully on ef4ed48

Working with all the editors


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27081.

@HLeithner HLeithner merged commit de3a6f6 into joomla:staging Nov 25, 2019
@HLeithner
Copy link
Member

thx

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Nov 25, 2019
@HLeithner HLeithner added this to the Joomla! 3.9.14 milestone Nov 25, 2019
@grantg182
Copy link

I have tested this item ✅ successfully on ef4ed48

Works with TinyMCE and "None", in 3.9.8.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27081.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants