rename "status" to "state" in response array
This commit is contained in:
parent
0053ecc30f
commit
e7955aebc6
1 changed files with 3 additions and 3 deletions
|
@ -123,7 +123,7 @@ class TwingleApiCall {
|
||||||
* If TRUE, don't do any changes
|
* If TRUE, don't do any changes
|
||||||
*
|
*
|
||||||
* @return array|null
|
* @return array|null
|
||||||
* Returns a response array that contains title, id, project_id and state or
|
* Returns a response array that contains title, id, project_id and status or
|
||||||
* NULL if $values is not an array
|
* NULL if $values is not an array
|
||||||
*
|
*
|
||||||
* @throws \CiviCRM_API3_Exception
|
* @throws \CiviCRM_API3_Exception
|
||||||
|
@ -156,7 +156,7 @@ class TwingleApiCall {
|
||||||
// If Twingle's version of the project is newer than the CiviCRM
|
// If Twingle's version of the project is newer than the CiviCRM
|
||||||
// TwingleProject campaign update the campaign
|
// TwingleProject campaign update the campaign
|
||||||
if (
|
if (
|
||||||
$result['state'] == 'TwingleProject exists' &&
|
$result['status'] == 'TwingleProject exists' &&
|
||||||
$values['last_update'] > $project->lastUpdate()
|
$values['last_update'] > $project->lastUpdate()
|
||||||
) {
|
) {
|
||||||
$project->update($values, TwingleProject::TWINGLE);
|
$project->update($values, TwingleProject::TWINGLE);
|
||||||
|
@ -199,7 +199,7 @@ class TwingleApiCall {
|
||||||
* The TwingleProject object that should get pushed to Twingle
|
* The TwingleProject object that should get pushed to Twingle
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
* Returns a response array that contains title, id, project_id and state
|
* Returns a response array that contains title, id, project_id and status
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function updateProject(TwingleProject $project) {
|
public function updateProject(TwingleProject $project) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue