push Projects to Twingle
This commit is contained in:
parent
7a52e18418
commit
999acd1029
1 changed files with 7 additions and 1 deletions
|
@ -96,7 +96,13 @@ class CRM_TwingleCampaign_BAO_TwingleApiCall {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare url for curl
|
// Prepare url for curl
|
||||||
$url = $this->protocol . 'project' . $this->baseUrl . $values['id'];
|
if ($values['id']) {
|
||||||
|
$url = $this->protocol . 'project' . $this->baseUrl . $values['id'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$url = $this->protocol . 'project' . $this->baseUrl . 'by-organisation/' .
|
||||||
|
$this->organisationId;
|
||||||
|
}
|
||||||
|
|
||||||
// Send curl and return result
|
// Send curl and return result
|
||||||
return $this->curlPost($url, $values);
|
return $this->curlPost($url, $values);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue