👾 bug fix: cannot set TwingleProject url via TwingleForm.create API
This commit is contained in:
parent
ef74a52e9f
commit
c22911e886
4 changed files with 66 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue