Skip to content

Commit

Permalink
fixed #54
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Feb 24, 2023
1 parent 0c78c23 commit c5d3d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mutagen_enabled: false
use_dns_when_possible: true
composer_version: "2"
web_environment: []
omit_containers: [db]

# Key features of ddev's config.yaml:

Expand Down
2 changes: 1 addition & 1 deletion src/Util/Dca/DcaUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getDcaFields(string $table, array $options = []): array
}

// restrict to certain input types
if (!empty($options['allowedInputTypes']) && isset($data['inputType']) && !\in_array($data['inputType'], $options['allowedInputTypes'])) {
if (!empty($options['allowedInputTypes']) && (!isset($data['inputType']) || !\in_array($data['inputType'], $options['allowedInputTypes']))) {
continue;
}

Expand Down

0 comments on commit c5d3d6a

Please sign in to comment.