Skip to content

Commit e55834f

Browse files
committed
MAGETWO-36982: Create Search Module API to support search functionality.
- MAGETWO-39542: Implement Product::search method - Fixed Batch
1 parent 177b9dc commit e55834f

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Indexer/Model/SaveHandler

1 file changed

+3
-1
lines changed

app/code/Magento/Indexer/Model/SaveHandler/Batch.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function getItems(\Traversable $documents, $size)
2525
$batch = [];
2626
}
2727
}
28-
yield $batch;
28+
if (count($batch) > 0) {
29+
yield $batch;
30+
}
2931
}
3032
}

0 commit comments

Comments
 (0)