civicrm_relationship table name changed to alias name rel, because its changed in...
authorroot <root@localhost.localdomain>
Fri, 1 Jun 2018 13:05:42 +0000 (14:05 +0100)
committerroot <root@localhost.localdomain>
Fri, 1 Jun 2018 13:05:42 +0000 (14:05 +0100)
CRM/Case/BAO/Case.php

index 671953faedded04272bb8a39f6f8615ad4f796ab..8048c8ff75b0780abecf333d40c99bd16740b29f 100644 (file)
@@ -869,7 +869,7 @@ SELECT case_status.label AS case_status, status_id, civicrm_case_type.title AS c
     );
 
     if ($relationshipID) {
-      $query .= ' AND civicrm_relationship.id = %3 ';
+      $query .= ' AND rel.id = %3 ';
       $params[3] = array($relationshipID, 'Integer');
     }
     $dao = CRM_Core_DAO::executeQuery($query, $params);