User tests: Successful: Unsuccessful:
Pull Request for Issue #15187 .
The pull fix the way how the script calculate the id for a fields and it's labels.
Also now it should be more close to JFormField::getId result.
For test can use next XML (place it in some params form,eg in template or custom module):
<field type="subform" name="subform" label="Subform" multiple="true">
<form>
<field type="radio" name="radio1" label="Radio">
<option value="1">Val 1</option>
<option value="2">Val 2</option>
</field>
<field type="checkboxes" name="checkboxes1" label="checkboxes">
<option value="3">Val 3</option>
<option value="4">Val 4</option>
</field>
<field type="checkbox" name="checkbox1" label="checkbox" value="1"/>
<field type="text" name="text1" label="text1"/>
</form>
</field>After add "new row", check the input/labels id, they should be similar to screenshot:

ID of the labels is not fixed,
they contain X eg: ..._subform__subformX_..
none
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript |
| Labels |
Added:
?
|
||
| Category | JavaScript | ⇒ | JavaScript Unit Tests |
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-10-15 15:57:49 |
| Closed_By | ⇒ | mbabker | |
| Labels |
Added:
?
|
||
I have tested this item✅ successfully on bf44558
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16480.