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:
parent
f10b920465
commit
a9ebd8c514
4 changed files with 11 additions and 40 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue