🔧 do not limit number of results for civicrm_api3 calls
This commit is contained in:
parent
cf04e1f934
commit
73714bf312
7 changed files with 25 additions and 7 deletions
|
@ -241,6 +241,7 @@ class CRM_TwingleCampaign_BAO_TwingleEvent extends Campaign {
|
|||
$parentCampaign = civicrm_api3('Campaign', 'get', [
|
||||
'sequential' => 1,
|
||||
$cf_project_id => $this->values['project_id'],
|
||||
'options' => ['limit' => 0]
|
||||
]);
|
||||
if ($parentCampaign['is_error'] == 0) {
|
||||
return (int) $parentCampaign['id'];
|
||||
|
|
|
@ -102,6 +102,7 @@ class CRM_TwingleCampaign_Form_Settings extends CRM_Core_Form {
|
|||
try {
|
||||
$result = civicrm_api3('CaseType', 'get', [
|
||||
'sequential' => 1,
|
||||
'options' => ['limit' => 0]
|
||||
]);
|
||||
if (is_array($result['values'])) {
|
||||
foreach ($result['values'] as $case) {
|
||||
|
|
|
@ -78,7 +78,11 @@ class CRM_TwingleCampaign_Utils_ExtensionCache {
|
|||
$campaign_type_id = civicrm_api3(
|
||||
'OptionValue',
|
||||
'get',
|
||||
['sequential' => 1, 'name' => $campaign_type['name']]
|
||||
[
|
||||
'sequential' => 1,
|
||||
'name' => $campaign_type['name'],
|
||||
'options' => ['limit' => 0],
|
||||
]
|
||||
)['values'];
|
||||
if ($campaign_type_id) {
|
||||
$this->campaigns['campaign_types'][$campaign_type['name']]['id'] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue