remove $origin parameter

it isn't necessary anymore because I use my own APIs to get the data always in the Twingle format
This commit is contained in:
Marc Michalsky forumZFD 2020-12-15 14:49:31 +01:00
parent f10b920465
commit a9ebd8c514
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 11 additions and 40 deletions

View file

@ -97,10 +97,11 @@ function civicrm_api3_twingle_sync_Sync($params) {
$id = $project_from_civicrm['id'];
unset($project_from_civicrm['id']);
$project_from_civicrm['name'] = $project_from_civicrm['title'];
$project = new TwingleProject($project_from_civicrm, TwingleProject::TWINGLE, $id);
$project = new TwingleProject($project_from_civicrm, $id);
$values = $twingleApi->pushProject($project);
$project->update($values);
$result_values['sync']['projects'][$i++] = $project->create();
}
}