Commit 36d4b33b authored by Nikolay Grishchenko's avatar Nikolay Grishchenko

Fix form.js addInlineField for new nested elements

parent 634516bd
......@@ -484,7 +484,10 @@
var $parentForm = $el.parent().closest('.inline-field');
if ($parentForm.hasClass('fresh')) {
id = $parentForm.attr('id') + '-' + elID;
id = $parentForm.attr('id');
if (elID) {
id += '-' + elID;
}
}
var $fieldList = $el.find('> .inline-field-list');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment