Do not check is context is set, should always be
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 13 Nov 2021 03:01:32 +0000 (16:01 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 13 Nov 2021 03:07:25 +0000 (16:07 +1300)
templates/CRM/Contact/Form/Edit/TagsAndGroups.tpl
templates/CRM/Form/attachmentjs.tpl

index deb5e374c5ee3584d8b1e7417651cf91d9ae3ccd..03c71d3b8ead585d424eda4b75a7ecefe131b2b9 100644 (file)
@@ -12,7 +12,7 @@
   <div class="crm-accordion-header">{$title}</div>
   <div class="crm-accordion-body" id="tagGroup">
 {/if}
-    <table class="form-layout-compressed{if isset($context) && $context EQ 'profile'} crm-profile-tagsandgroups{/if}">
+    <table class="form-layout-compressed{if $context EQ 'profile'} crm-profile-tagsandgroups{/if}">
       <tr>
         {if empty($type) || $type eq 'tag'}
           <td>
@@ -20,7 +20,7 @@
               {if !empty($title)}{$form.tag.label}<br>{/if}
               {$form.tag.html}
             </div>
-            {if !isset($context) || $context NEQ 'profile'}
+            {if $context NEQ 'profile'}
               {include file="CRM/common/Tagset.tpl"}
             {/if}
           </td>
index 1734fff151fb88577067e0289bafc000313e380a..378aaf1919f49f8a04e65125176bedbc89d2bea4 100644 (file)
@@ -15,7 +15,7 @@
         request.done(function() {
           $el.trigger('crmPopupFormSuccess');
           $row.remove();
-          {/literal}{if isset($context) and $context EQ 'MessageTemplate'}{literal}
+          {/literal}{if $context EQ 'MessageTemplate'}{literal}
             $('#file_id').show();
           {/literal}{/if}{literal}
         });