CRM-15002: fix broken Link Case functionality
authorCiviCRM <info@civicrm.org>
Tue, 22 Jul 2014 06:24:54 +0000 (11:54 +0530)
committerCiviCRM <info@civicrm.org>
Tue, 22 Jul 2014 06:24:54 +0000 (11:54 +0530)
CRM/Case/Form/Activity/LinkCases.php
templates/CRM/Case/Form/Activity.tpl

index bf7902ddd5df42688dd3cdcf471adfca054b6368..2c4be8a26417a47deb78476bba1fc92a86bbd772 100644 (file)
@@ -106,7 +106,7 @@ class CRM_Case_Form_Activity_LinkCases {
     $errors = array();
 
     $linkCaseId = CRM_Utils_Array::value('link_to_case_id', $values);
-    assert('is_numeric($linkeCaseId)');
+    assert('is_numeric($linkCaseId)');
     if ($linkCaseId == CRM_Utils_Array::first($form->_caseId)) {
       $errors['link_to_case'] = ts('Please select some other case to link.');
     }
index 765452eb0ef756e9b2d2ff1dde32156f44f1a908..40681ec53a65b8bc373c12225d0f35cefe25030f 100644 (file)
@@ -58,6 +58,7 @@
     {* Block for change status, case type and start date. *}
     {if $activityTypeFile EQ 'ChangeCaseStatus'
     || $activityTypeFile EQ 'ChangeCaseType'
+    || $activityTypeFile EQ 'LinkCases'
     || $activityTypeFile EQ 'ChangeCaseStartDate'}
       {include file="CRM/Case/Form/Activity/$activityTypeFile.tpl"}
       <tr class="crm-case-activity-form-block-details">