add state "TwingleProject updated"
This commit is contained in:
parent
ea15f7d597
commit
5ed2f30133
1 changed files with 3 additions and 0 deletions
|
@ -217,6 +217,9 @@ class TwingleApiCall {
|
||||||
try {
|
try {
|
||||||
$project->update($values, $project_options, TwingleProject::TWINGLE);
|
$project->update($values, $project_options, TwingleProject::TWINGLE);
|
||||||
$result = $project->create();
|
$result = $project->create();
|
||||||
|
$result['status'] = $result['status'] == 'TwingleProject created'
|
||||||
|
? 'TwingleProject updated'
|
||||||
|
: 'TwingleProject Update failed';
|
||||||
} catch (\Exception $e){
|
} catch (\Exception $e){
|
||||||
// Log Exception
|
// Log Exception
|
||||||
\Civi::log()->error(
|
\Civi::log()->error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue