----------------------------------------
* CRM-12347: Rebuild Smart Group Cache errors out if limit=50 configured in parameters
http://issues.civicrm.org/jira/browse/CRM-12347
( $now >= g.refresh_date )
)
$groupIDClause
- $limitClause
$orderClause
+ $limitClause
";
$dao = CRM_Core_DAO::executeQuery($query);
return $result;
}
- if ($_SERVER['REQUEST_METHOD'] == 'GET' && strtolower (substr( $args[2],0,3)) != 'get' ) {
- // get only valid for non destructive methods
+ if ($_SERVER['REQUEST_METHOD'] == 'GET' && strtolower(substr( $args[2],0,3)) != 'get' && 0) {
+ // get only valid for non destructive methods
require_once 'api/v3/utils.php';
return civicrm_api3_create_error("SECURITY: All requests that modify the database must be http POST, not GET.",
array(
$limit = CRM_Utils_Array::value( 'limit', $params, 0 );
CRM_Contact_BAO_GroupContactCache::loadAll(null, $limit);
+ return civicrm_api3_create_success();
}