add state "TwingleProject updated"

This commit is contained in:
Marc Michalsky forumZFD 2020-10-13 14:16:07 +02:00
parent ea15f7d597
commit 5ed2f30133
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -217,6 +217,9 @@ class TwingleApiCall {
try {
$project->update($values, $project_options, TwingleProject::TWINGLE);
$result = $project->create();
$result['status'] = $result['status'] == 'TwingleProject created'
? 'TwingleProject updated'
: 'TwingleProject Update failed';
} catch (\Exception $e){
// Log Exception
\Civi::log()->error(