From e7e572807e8ec866d63584f280a7a78d3d9c738a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 26 Sep 2015 11:13:55 -0400 Subject: [PATCH] CRM-16980 - Only allow contacts of same type to be added as clients --- CRM/Case/Form/CaseView.php | 1 + templates/CRM/Case/Form/CaseView.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Case/Form/CaseView.php b/CRM/Case/Form/CaseView.php index 1b3b74fcf4..776f2f4c8f 100644 --- a/CRM/Case/Form/CaseView.php +++ b/CRM/Case/Form/CaseView.php @@ -83,6 +83,7 @@ class CRM_Case_Form_CaseView extends CRM_Core_Form { $this->assign('caseID', $this->_caseID); $this->assign('contactID', $this->_contactID); + $this->assign('contactType', CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_contactID, 'contact_type')); //validate case id. $this->_userCases = array(); diff --git a/templates/CRM/Case/Form/CaseView.tpl b/templates/CRM/Case/Form/CaseView.tpl index a00360b684..19311e304f 100644 --- a/templates/CRM/Case/Form/CaseView.tpl +++ b/templates/CRM/Case/Form/CaseView.tpl @@ -46,7 +46,7 @@
- +
{if $hasRelatedCases} -- 2.25.1