From e7955aebc6563566fd98d44f50187180cef05d2f Mon Sep 17 00:00:00 2001 From: Marc Michalsky forumZFD Date: Wed, 7 Oct 2020 15:17:48 +0200 Subject: [PATCH] rename "status" to "state" in response array --- api/v3/TwingleSync/BAO/TwingleApiCall.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v3/TwingleSync/BAO/TwingleApiCall.php b/api/v3/TwingleSync/BAO/TwingleApiCall.php index 06eb9b0..913dbe0 100644 --- a/api/v3/TwingleSync/BAO/TwingleApiCall.php +++ b/api/v3/TwingleSync/BAO/TwingleApiCall.php @@ -123,7 +123,7 @@ class TwingleApiCall { * If TRUE, don't do any changes * * @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 * * @throws \CiviCRM_API3_Exception @@ -156,7 +156,7 @@ class TwingleApiCall { // If Twingle's version of the project is newer than the CiviCRM // TwingleProject campaign update the campaign if ( - $result['state'] == 'TwingleProject exists' && + $result['status'] == 'TwingleProject exists' && $values['last_update'] > $project->lastUpdate() ) { $project->update($values, TwingleProject::TWINGLE); @@ -199,7 +199,7 @@ class TwingleApiCall { * The TwingleProject object that should get pushed to Twingle * * @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) {