From 3a66e4115eec457ec38dc69bb00adbd956d67335 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Tue, 31 Oct 2017 17:42:30 +0530 Subject: [PATCH] CRM-21373 - Notice error on creating cases --- CRM/Activity/Page/AJAX.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Activity/Page/AJAX.php b/CRM/Activity/Page/AJAX.php index 321c73e617..2266878ed8 100644 --- a/CRM/Activity/Page/AJAX.php +++ b/CRM/Activity/Page/AJAX.php @@ -208,7 +208,7 @@ class CRM_Activity_Page_AJAX { foreach ($caseRelationships as $key => &$row) { $typeLabel = $row['relation']; // Add "
(Case Manager)" to label - if ($row['relation_type'] == $managerRoleId) { + if (!empty($row['relation_type']) && $row['relation_type'] == $managerRoleId) { $row['relation'] .= '
' . '(' . ts('Case Manager') . ')'; } // view user links -- 2.25.1