👾 bug fix: cannot set TwingleProject url via TwingleForm.create API

This commit is contained in:
Marc Michalsky forumZFD 2021-04-15 20:07:48 +02:00
parent ef74a52e9f
commit c22911e886
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 66 additions and 26 deletions

View file

@ -86,8 +86,7 @@ function civicrm_api3_twingle_project_Create(array $params): array {
unset($result['project_id']);
$project = new TwingleProject($result, $params['id']);
unset($params['id']);
$project->update($params);
$project->setEmbedData($params);
$project->merge($params);
}
// If no id is provided, try to create a new project with provided values
else {