LCD-3559 revert original change and handle in tpl file
authorBrian Shaughnessy <brian@lcdservices.biz>
Tue, 7 Mar 2017 15:00:28 +0000 (10:00 -0500)
committerBrian Shaughnessy <brian@lcdservices.biz>
Tue, 7 Mar 2017 15:00:28 +0000 (10:00 -0500)
CRM/Contact/Form/Edit/TagsAndGroups.php
templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl

index c1803278231de6f1e3f7d151d0f4fe26e7daa61a..def736d726e8eb8860deb2df56ef349ba6592e98 100644 (file)
@@ -122,8 +122,8 @@ class CRM_Contact_Form_Edit_TagsAndGroups {
           }
           else {
             $form->_tagGroup[$fName][$id]['description'] = $group['description'];
-            $elements[] = &$form->addElement('advcheckbox', $id,NULL, "<b>".$group['title'].'</b>'."<br/>"."<div class='description'>".$group['description']."</div>", $attributes);
-                 }
+            $elements[] = &$form->addElement('advcheckbox', $id, NULL, $group['title'], $attributes);
+          }
         }
 
         if ($groupElementType == 'select' && !empty($groupsOptions)) {
index ba423175a29cc8ae9250fdfb6e076aa1469154e2..df271f19d194c1ce6f2eaa1359021676af04e905 100644 (file)
           <td>
             {if $groupElementType eq 'select'}
               <span class="label">{if $title}{$form.group.label}{/if}</span>
+              {$form.group.html}
+            {else}
+              {foreach key=key item=item from=$tagGroup.group}
+                <div class="group-wrapper">
+                  {$form.group.$key.html}
+                  {if $item.description}
+                    <div class="description">{$item.description}</div>
+                  {/if}
+                </div>
+              {/foreach}
             {/if}
-            {$form.group.html}
           </td>
         {/if}
         {if (!$type || $type eq 'tag') && $tree}