smarty warnings
authordemeritcowboy <demeritcowboy@hotmail.com>
Tue, 3 Aug 2021 02:51:04 +0000 (22:51 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Tue, 3 Aug 2021 02:51:04 +0000 (22:51 -0400)
CRM/Case/Form/CaseView.php
templates/CRM/Case/Form/CaseView.tpl

index 5a8106a56ecc645a33e536a07341bf52ed8f17c4..910282887b1417ffc383c82e015589717766d6be 100644 (file)
@@ -353,9 +353,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form {
     );
 
     $hookCaseSummary = CRM_Utils_Hook::caseSummary($this->_caseID);
-    if (is_array($hookCaseSummary)) {
-      $this->assign('hookCaseSummary', $hookCaseSummary);
-    }
+    $this->assign('hookCaseSummary', is_array($hookCaseSummary) ? $hookCaseSummary : NULL);
 
     $allTags = CRM_Core_BAO_Tag::getColorTags('civicrm_case');
 
index 712a7ac52aaf00c04ba91482715992108b4bf9c0..89c46727780a3d9046b6473ef1541c5642dd945a 100644 (file)
             <th data-data="phone">{ts}Phone{/ts}</th>
             <th data-data="email">{ts}Email{/ts}</th>
             <th data-data="end_date">{ts}End Date{/ts}</th>
-            {if $relId neq 'client' and $hasAccessToAllCases}
+            {if $hasAccessToAllCases}
               <th data-data="actions" data-orderable="false">{ts}Actions{/ts}</th>
             {/if}
           </tr>