Skip to content

Commit

Permalink
fix element type check in api channel (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored Jan 5, 2024
1 parent fdba349 commit 7430ff5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeception.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Codeception
on:
push:
branches: [ 'master' ]
branches: [ '4.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '4.x' ]

jobs:
codeception:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Easy Coding Standards
on:
push:
branches: [ 'master' ]
branches: [ '4.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '4.x' ]

jobs:
ecs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-stan.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: PHP Stan
on:
push:
branches: [ 'master' ]
branches: [ '4.x' ]
pull_request:
branches: [ 'master' ]
branches: [ '4.x' ]

jobs:
stan:
Expand Down
3 changes: 3 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Upgrade Notes

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

## Version 4.5.0
- **[BUGFIX]**: allow `GET` operation on `/form-control/get-url-structure` route [#383](https://github.com/dachcom-digital/pimcore-formbuilder/issues/383)
- **[BUGFIX]**: suppress php warning of undefined array key [@jheimbach](https://github.com/dachcom-digital/pimcore-formbuilder/pull/387)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,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 7430ff5

Please sign in to comment.