Skip to content

Commit 4450358

Browse files
committed
Merge branch '5.x' into 6.x
2 parents fdd0e55 + 74a75ee commit 4450358

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Added the ability to map the Promotional Price when importing Commerce Products. ([#1665](https://github.com/craftcms/feed-me/pull/1665))
66
- Fixed a PHP error that could occur when importing an array of elements into a related field when using the Debug option. ([#1667](https://github.com/craftcms/feed-me/pull/1667))
77
- Fixed a bug where you could not import Commerce Variant data into a field that specified Product Type sources. ([#1652](https://github.com/craftcms/feed-me/pull/1652))
8+
- Fixed a bug where feed data could differ when running the feed with debugging enabled. ([#1670](https://github.com/craftcms/feed-me/pull/1670))
89

910
## 6.9.0 - 2025-08-10
1011

src/services/Process.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,18 @@ public function debugFeed($feed, $limit, $offset, $processedElementIds): void
619619
return;
620620
}
621621

622+
$data = $feedData;
623+
624+
foreach ($feedData as $key => $nodeData) {
625+
if (!is_array($nodeData)) {
626+
$nodeData = [$nodeData];
627+
}
628+
629+
$data[$key] = Hash::flatten($nodeData, '/');
630+
}
631+
632+
$feedData = array_values($data);
633+
622634
$this->beforeProcessFeed($feed, $feedData);
623635
$feedSettings = $this->getFeedSettings($feed, $feedData);
624636

0 commit comments

Comments
 (0)