Skip to content

Commit

Permalink
Subform - Wrong ID generated for the elements of subform when we clic…
Browse files Browse the repository at this point in the history
…k on Plus (+) button to add repeated subform joomla#25387 joomla#25398
  • Loading branch information
ankush-maherwal committed Jul 2, 2019
1 parent 3e7d9c9 commit 772b9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media/system/js/subform-repeatable-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
for (var i = 0, l = haveName.length; i < l; i++) {
var $el = $(haveName[i]),
name = $el.attr('name'),
id = name.replace(/(\[\]$)/g, '').replace(/(\]\[)/g, '__').replace(/\[/g, '_').replace(/\]/g, '').replace(/\W/g,"_"), // id from name
id = name.replace(/(\[\]$)/g, '').replace(/(\]\[)/g, '__').replace(/\[/g, '_').replace(/\]/g, '').replace(/\W/g, '_'), // id from name
nameNew = name.replace('[' + group + '][', '['+ groupnew +']['), // New name
idNew = id.replace(group, groupnew), // Count new id
countMulti = 0, // count for multiple radio/checkboxes
Expand Down

0 comments on commit 772b9b8

Please sign in to comment.