From a5511c4ba984b7e5d755acabb48cf4038d3457b7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 2 Jul 2015 12:46:51 -0400 Subject: [PATCH] CRM-16676 - Fix custom data target containers --- templates/CRM/common/customData.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/common/customData.tpl b/templates/CRM/common/customData.tpl index 907871a35f..0b8d6467d8 100644 --- a/templates/CRM/common/customData.tpl +++ b/templates/CRM/common/customData.tpl @@ -29,7 +29,7 @@ CRM.buildCustomData = function (type, subType, subName, cgCount, groupID, isMultiple) { var dataUrl = CRM.url('civicrm/custom', {type: type}), prevCount = 1, - fname, + fname = '#customData', storage = {}; if (subType) { @@ -79,8 +79,8 @@ $("#add-more-link-" + prevCount).hide(); } } - else { - fname = '#customData' + (subName && subName != 'null') ? subName : ''; + else if (subName && subName != 'null') { + fname += subName; } CRM.loadPage(dataUrl, {target: fname}); -- 2.25.1