diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f625624..b684470e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ ## Unreleased - Added the `assetDownloadGuzzle` config setting which defaults to `false`. When it is set to `true`, Feed Me will use Guzzle to download assets instead curl directly. ([#1549](https://github.com/craftcms/feed-me/pull/1549)) -- Imported Commerce Products now add a single Catalog Pricing job to the queue after an import, instead of one per Product. ([#1547](https://github.com/craftcms/feed-me/pull/1547)) +- Imported Commerce Products now add a single Catalog Pricing job to the queue after an import, instead of one per Product. ([#1547](https://github.com/craftcms/feed-me/pull/1547)) +- Fixed a bug where importing matching Categories could go awry if the source of the field is set to a group and not a custom source. ([#1550](https://github.com/craftcms/feed-me/pull/1550)) ## 6.5.0 - 2024-10-15 diff --git a/src/fields/Categories.php b/src/fields/Categories.php index dfe235f0..b444ca26 100644 --- a/src/fields/Categories.php +++ b/src/fields/Categories.php @@ -143,6 +143,10 @@ public function parseField(): mixed } } + if ($groupId) { + $criteria['groupId'] = $groupId; + } + $criteria['status'] = null; $criteria['limit'] = $limit; $criteria[$match] = $dataValue;