Skip to content

Commit

Permalink
Part 2 of 1346
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierbon committed Nov 24, 2023
1 parent c30fb38 commit 8d6a3da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Fixed a bug where `queueTtr`, `queueMaxRetry`, and `assetDownloadCurl` settings were being ignored if you used a `config/feed-me.php` config file. ([#1356](https://github.com/craftcms/feed-me/issues/1356))
- Fixed a PHP error that could occur when you map an entry field with a default value and there is an empty value in the feed. ([#1250](https://github.com/craftcms/feed-me/pull/1250))
- Fixed a bug where the `maxRelations` setting was not being respected for relational fields. ([#1354](https://github.com/craftcms/feed-me/issues/1354))
- Part 2 of ([1346](https://github.com/craftcms/feed-me/pull/1346)). Only cater for Categories and Tags fields.

## 5.2.0 - 2023-07-06

Expand Down
5 changes: 4 additions & 1 deletion src/services/Fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ public function parseField($feed, $element, $feedData, $fieldHandle, $fieldInfo)
// if it hasn't changed - proceed as before
// if it has changed - assume that we've entrified and adjust the $fieldClassHandle
$field = Craft::$app->getFields()->getFieldByHandle($fieldHandle);
if (!$field instanceof $fieldClassHandle) {
if (
!$field instanceof $fieldClassHandle &&
($field instanceof \craft\fields\Categories || $field instanceof \craft\fields\Tags)
) {
$fieldClassHandle = \craft\fields\Entries::class;
}

Expand Down

0 comments on commit 8d6a3da

Please sign in to comment.