Skip to content

Commit 73928eb

Browse files
committed
Merge remote-tracking branch 'origin/AC-3062-fix-deprecation-issue-in-eav-indexing' into delivery-bunch-w20
2 parents 4ef070f + d255ba3 commit 73928eb

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class Source extends AbstractEav
2020
{
21-
const TRANSIT_PREFIX = 'transit_';
21+
public const TRANSIT_PREFIX = 'transit_';
2222

2323
/**
2424
* Catalog resource helper
@@ -441,7 +441,7 @@ private function saveDataFromSelect(\Magento\Framework\DB\Select $select, array
441441
$data = [];
442442
$query = $select->query();
443443
while ($row = $query->fetch()) {
444-
$values = explode(',', $row['value']);
444+
$values = isset($row['value']) ? explode(',', $row['value']) : [];
445445
foreach ($values as $valueId) {
446446
if (isset($options[$row['attribute_id']][$valueId])) {
447447
$data[] = [$row['entity_id'], $row['attribute_id'], $row['store_id'], $valueId, $row['source_id']];

0 commit comments

Comments
 (0)