✨️ avoid "missing index" warnings
This commit is contained in:
parent
4bcc4cf1fb
commit
9b45d4a1fa
2 changed files with 6 additions and 4 deletions
|
@ -107,9 +107,9 @@ function civicrm_api3_twingle_campaign_Get(array $params): array {
|
|||
Cache::getInstance()
|
||||
->getCampaignIds()['campaign_types']['twingle_campaign']['id'];
|
||||
|
||||
// If no id but a project_id is provided, get all TwingleCampaign children of
|
||||
// this TwingleProject
|
||||
if (array_key_exists('project_id', $params) && $params['project_id']) {
|
||||
// If no id but a parent_id or a project_id is provided, get all
|
||||
// TwingleCampaign children of this TwingleProject
|
||||
if (isset($params['project_id']) && !isset($params['parent_id'])) {
|
||||
|
||||
// Get TwingleProject
|
||||
$project = civicrm_api3('TwingleProject',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue