From 3bf2f5e358be3021747e44e95515abcb120ad3f1 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Tue, 7 Mar 2017 10:00:28 -0500 Subject: [PATCH] LCD-3559 revert original change and handle in tpl file --- CRM/Contact/Form/Edit/TagsAndGroups.php | 4 ++-- templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Form/Edit/TagsAndGroups.php b/CRM/Contact/Form/Edit/TagsAndGroups.php index c180327823..def736d726 100644 --- a/CRM/Contact/Form/Edit/TagsAndGroups.php +++ b/CRM/Contact/Form/Edit/TagsAndGroups.php @@ -122,8 +122,8 @@ class CRM_Contact_Form_Edit_TagsAndGroups { } else { $form->_tagGroup[$fName][$id]['description'] = $group['description']; - $elements[] = &$form->addElement('advcheckbox', $id,NULL, "".$group['title'].''."
"."
".$group['description']."
", $attributes); - } + $elements[] = &$form->addElement('advcheckbox', $id, NULL, $group['title'], $attributes); + } } if ($groupElementType == 'select' && !empty($groupsOptions)) { diff --git a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl index ba423175a2..df271f19d1 100644 --- a/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl +++ b/templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl @@ -93,8 +93,17 @@ {if $groupElementType eq 'select'} {if $title}{$form.group.label}{/if} + {$form.group.html} + {else} + {foreach key=key item=item from=$tagGroup.group} +
+ {$form.group.$key.html} + {if $item.description} +
{$item.description}
+ {/if} +
+ {/foreach} {/if} - {$form.group.html} {/if} {if (!$type || $type eq 'tag') && $tree} -- 2.25.1