Skip to content

Commit

Permalink
fix element type check in api channel (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Jan 5, 2024
1 parent 564e778 commit ac0b4b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

## 5.0.3
- Fix element type check in api channel [#423](https://github.com/dachcom-digital/pimcore-formbuilder/issues/423)

## 5.0.2
- Fix Mail Layout Editor base path [#426](https://github.com/dachcom-digital/pimcore-formbuilder/issues/426)

Expand Down
4 changes: 3 additions & 1 deletion src/OutputWorkflow/Channel/Api/ApiOutputChannelWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,16 @@ protected function buildApiNodes(array $nodes, array $formData, array $mapping,
foreach ($apiMappingFields as $apiMappingField) {

$context = [
'type' => $formField['type'],
'type' => $formField['type'] ?? null,
'parentType' => $hasParent ? $parentType : null,
'formData' => $formData,
'formField' => $formField,
'apiMappingField' => $apiMappingField,
];

$nodes[$apiMappingField] = $this->findFormFieldValue($formField, $fieldTransformer, $context);

unset($apiMappingField);
}

if ($hasChildren) {
Expand Down

0 comments on commit ac0b4b2

Please sign in to comment.