Push only active campaigns to Twingle
This commit is contained in:
parent
de9cd894b7
commit
91c70c645a
1 changed files with 2 additions and 2 deletions
|
@ -193,8 +193,8 @@ function civicrm_api3_twingle_project_Sync(array $params): array {
|
|||
foreach ($projects_from_civicrm['values'] as $project_from_civicrm) {
|
||||
if (
|
||||
!in_array($project_from_civicrm['project_id'],
|
||||
array_column($projects_from_twingle, 'id')
|
||||
)) {
|
||||
array_column($projects_from_twingle, 'id'),
|
||||
) && $project_from_civicrm['is_active'] == 1) {
|
||||
// store campaign id in $id
|
||||
$id = $project_from_civicrm['id'];
|
||||
unset($project_from_civicrm['id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue