From 69d1466d6a065206b92c281b1e70529447be5a04 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 7 Aug 2013 09:14:27 +1200 Subject: [PATCH] CRM-13160 partial fix, eliminates fatal but doesn't address where there are multiple relationship type possibilities, required to avoid fatals on tests --- CRM/Contact/BAO/RelationshipType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1