only show tag label when there are tags
authorTim Mallezie <tim.mallezie@chiro.be>
Wed, 13 May 2015 19:05:17 +0000 (21:05 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Wed, 13 May 2015 19:05:17 +0000 (21:05 +0200)
templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl

index b2043a4d62eba1a86bdfc546f24cc2d1f5583fac..dcd3079ba96b54504785f6852e3d1373e58f97dd 100644 (file)
@@ -97,7 +97,7 @@
             {$form.group.html}
           </td>
         {/if}
-        {if !$type || $type eq 'tag'}
+        {if (!$type || $type eq 'tag') && $tree}
           <td width="70%">{if $title}<span class="label">{$form.tag.label}</span>{/if}
             <div id="tagtree">
               {include file="CRM/Contact/Form/Edit/Tagtree.tpl" level=1}