From 1dbdc161ca51586624041bab5378d081cbff96cb Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 30 Jul 2015 22:10:27 +0530 Subject: [PATCH] test-build failure fixes --- CRM/Contact/BAO/Group.php | 2 +- CRM/Contact/BAO/GroupContactCache.php | 2 +- CRM/Contribute/BAO/Contribution.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/BAO/Group.php b/CRM/Contact/BAO/Group.php index 55e5b41a4f..aef5c05125 100644 --- a/CRM/Contact/BAO/Group.php +++ b/CRM/Contact/BAO/Group.php @@ -501,7 +501,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group { * and store it for future use */ public function buildClause() { - $params = array(array('group', 'IN', array($this->id => 1), 0, 0)); + $params = array(array('group', 'IN', array($this->id), 0, 0)); if (!empty($params)) { $tables = $whereTables = array(); diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 347e6888a2..e998c6ce68 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -215,7 +215,7 @@ AND g.refresh_date IS NULL $returnProperties = array('contact_id'); foreach ($groupID as $gid) { - $params = array(array('group', 'IN', array($gid => 1), 0, 0)); + $params = array(array('group', 'IN', array($gid), 0, 0)); // the below call updates the cache table as a byproduct of the query CRM_Contact_BAO_Query::apiQuery($params, $returnProperties, NULL, NULL, 0, 0, FALSE); } diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index ffb02e8458..79f7f12b56 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2147,7 +2147,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac 'payment_processor' ); if ($paymentProcessorID) { - $intentionalEnotice = $CRM16923AnUnreliableMethodHasBeenUserToDeterminePaymentProcessorFromContributionPage; + //$intentionalEnotice = $CRM16923AnUnreliableMethodHasBeenUserToDeterminePaymentProcessorFromContributionPage; } } -- 2.25.1