Translate values if values come from CiviCRM Campaign API

This commit is contained in:
Marc Michalsky forumZFD 2020-09-29 14:16:49 +02:00
parent 9f2b5c4913
commit f4b49077bb
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -43,6 +43,10 @@ class TwingleProject {
$this->values = $values; $this->values = $values;
// Translate values if values come from CiviCRM Campaign API // Translate values if values come from CiviCRM Campaign API
if ($translate) {
$this->values = $this->translateValues(TRUE);
$this->id = $values['id'];
}
// Format data types of the values for import into CiviCRM // Format data types of the values for import into CiviCRM
$this->formatForImport($values); $this->formatForImport($values);