From: eileen Date: Tue, 6 Aug 2013 21:14:27 +0000 (+1200) Subject: CRM-13160 partial fix, eliminates fatal but doesn't address where there are multiple... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69d1466d6a065206b92c281b1e70529447be5a04;p=civicrm-core.git CRM-13160 partial fix, eliminates fatal but doesn't address where there are multiple relationship type possibilities, required to avoid fatals on tests --- diff --git a/CRM/Contact/BAO/RelationshipType.php b/CRM/Contact/BAO/RelationshipType.php index 53db380d88..ad6bdff9d6 100644 --- a/CRM/Contact/BAO/RelationshipType.php +++ b/CRM/Contact/BAO/RelationshipType.php @@ -157,7 +157,7 @@ UPDATE civicrm_membership_type SET relationship_type_id = NULL WHERE relationship_type_id = %1 "; - $params = array(1 => array($relationshipTypeId, 'Integer')); + $params = array(1 => array(CRM_Core_DAO::VALUE_SEPARATOR . $relationshipTypeId . CRM_Core_DAO::VALUE_SEPARATOR, 'String')); CRM_Core_DAO::executeQuery($query, $params); //fixed for CRM-3323