🔧 do not limit number of results for civicrm_api3 calls

This commit is contained in:
Marc Michalsky forumZFD 2021-03-19 19:54:03 +01:00
parent cf04e1f934
commit 73714bf312
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
7 changed files with 25 additions and 7 deletions

View file

@ -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'];

View file

@ -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) {

View file

@ -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'] =