Skip to content

Commit a928c4e

Browse files
Merge remote-tracking branch '36693/issue-36675' into comm_78764_36529
2 parents 5bc55c6 + 7b27c48 commit a928c4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ private function sortTree(array &$tree): array
7070
} elseif (isset($node['children_count'])) {
7171
$node['children_count'] = 0;
7272
}
73+
// redirect_code null will not return , so it will be 0 when there is no redirect error.
74+
if (!isset($node['redirect_code'])) {
75+
$node['redirect_code'] = 0;
76+
}
7377
}
7478

7579
return $tree;

0 commit comments

Comments
 (0)