From ab1dd7ce22f51ed75546d6c7165c77cf8e89801c Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Tue, 19 Nov 2024 15:37:36 +0000 Subject: [PATCH 1/2] if we got groupId from the field, use it when searching --- src/fields/Categories.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fields/Categories.php b/src/fields/Categories.php index 166232d0..48bef9c4 100644 --- a/src/fields/Categories.php +++ b/src/fields/Categories.php @@ -152,6 +152,9 @@ public function parseField(): mixed $columnName = Craft::$app->getFields()->oldFieldColumnPrefix . $match; } + if ($groupId) { + $criteria['groupId'] = $groupId; + } $criteria['status'] = null; $criteria['limit'] = $limit; $criteria['where'] = ['=', $columnName, $dataValue]; From d4c4d217aa1891197fc742a7848a9da376bb52ce Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Tue, 26 Nov 2024 17:01:30 -0800 Subject: [PATCH 2/2] changelog for https://github.com/craftcms/feed-me/pull/1550 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4de0c081..379cbd68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 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)) +- 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)) ## 5.8.2 - 2024-10-15