bug fix: test mode

This commit is contained in:
Marc Michalsky forumZFD 2020-09-30 15:33:04 +02:00
parent aafce7c32f
commit 85afeedd23
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 1 additions and 3 deletions

View file

@ -114,8 +114,6 @@ class TwingleApiCall {
if (is_array($values)) { if (is_array($values)) {
$project = new TwingleProject($values); $project = new TwingleProject($values);
$result = $project->create($is_test); $result = $project->create($is_test);
$result = $project->create();
if ( if (
$result['state'] == 'exists' && $result['state'] == 'exists' &&
$values['last_update'] > $project->getTimestamp() $values['last_update'] > $project->getTimestamp()

View file

@ -94,7 +94,7 @@ class TwingleProject {
* @return array * @return array
* @throws \CiviCRM_API3_Exception * @throws \CiviCRM_API3_Exception
*/ */
public function create() { public function create(bool $is_test = FALSE) {
// Translate $value keys to custom field names // Translate $value keys to custom field names
$translatedValues = $this->translateValues(); $translatedValues = $this->translateValues();