From 6b754ecb2e8743689a4db464bcd042dac025e977 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 18 Mar 2014 23:13:42 -0400 Subject: [PATCH] CRM-13863 - Add livePage to contact case tab --- CRM/Contact/Page/View/Summary.php | 3 +-- templates/CRM/Case/Page/Tab.tpl | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CRM/Contact/Page/View/Summary.php b/CRM/Contact/Page/View/Summary.php index dc47daaf22..337c8668e1 100644 --- a/CRM/Contact/Page/View/Summary.php +++ b/CRM/Contact/Page/View/Summary.php @@ -328,8 +328,7 @@ class CRM_Contact_Page_View_Summary extends CRM_Contact_Page_View { 'title' => $elem['title'], 'weight' => $elem['weight'], 'count' => CRM_Contact_BAO_Contact::getCountComponent($u, $this->_contactId), - // CiviCase UI not yet compatible with livePage popups - 'class' => $u == 'case' ? '' : 'livePage', + 'class' => 'livePage', ); // make sure to get maximum weight, rest of tabs go after // FIXME: not very elegant again diff --git a/templates/CRM/Case/Page/Tab.tpl b/templates/CRM/Case/Page/Tab.tpl index 9133b38c1d..f6ac9dd4bf 100644 --- a/templates/CRM/Case/Page/Tab.tpl +++ b/templates/CRM/Case/Page/Tab.tpl @@ -51,10 +51,8 @@
{ts 1=$displayName}This page lists all case records for %1.{/ts} - {if $permission EQ 'edit' and - call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') and - $allowToAddNewCase} - {ts 1=$newCaseURL}Click Add Case to add a case record for this contact.{/ts}{/if} + {if $permission EQ 'edit' and call_user_func(array('CRM_Core_Permission','check'), 'access all cases and activities') and $allowToAddNewCase} + {ts 1="href='$newCaseURL' class='action-item'"}Click Add Case to add a case record for this contact.{/ts}{/if}
{if $action eq 16 and $permission EQ 'edit' and -- 2.25.1