Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.0
-
Fix Version/s: 4.4.1
-
Component/s: None
-
Labels:None
Description
Because the api is in use a limit of 25 is being applied to function that renders membership tokens - this function call needs a limit high enough to effectively be unlimited.
ie,. this is what is required
https://github.com/fuzionnz/civicrm/commit/138c8e36bcf6f782f443583ac61d827c724cb737
From 138c8e36bcf6f782f443583ac61d827c724cb737 Mon Sep 17 00:00:00 2001
From: Jonathan Hunt <git@huntdesign.co.nz>
Date: Tue, 29 Oct 2013 19:29:16 +1300
Subject: [PATCH] CRM-13668 - membership based tokens are inappropriately
applying a return limit has been successfully created.
—
CRM/Utils/Token.php | 2 +-
1 file changed, 1 insertion, 1 deletion
diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php
index a95ffd3..c304b0c 100644
— a/CRM/Utils/Token.php
+++ b/CRM/Utils/Token.php
@@ -1128,7 +1128,7 @@ static function getContributionTokenDetails($contributionIDs,
- @param array $membershipIDs array of membership IDS
*/
static function getMembershipTokenDetails($membershipIDs) { - $memberships = civicrm_api3('membership', 'get', array('membership_id' => array('IN' => (array) $membershipIDs))); + $memberships = civicrm_api3('membership', 'get', array('options' => array('limit' => 200000), 'membership_id' => array('IN' => (array) $membershipIDs))); return $memberships['values']; }/**
1.8.4