File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/AsynchronousOperations/Plugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ class CollectionUpdater
19
19
* Adds id value in operation_key in case of bulk operation
20
20
*
21
21
* @param AbstractDb $subject
22
- * @param $result
22
+ * @param array|null $result
23
23
* @return array
24
24
* @throws \Magento\Framework\Exception\LocalizedException
25
25
*/
26
- public function afterGetData (AbstractDb $ subject , $ result )
26
+ public function afterGetData (AbstractDb $ subject , ? array $ result )
27
27
{
28
28
if (is_array ($ result ) && !empty ($ result ) &&
29
- $ subject ->getResource ()->getMainTable ( ) == "magento_operation " &&
30
- $ subject -> getResource ()-> getTable ( ' magento_bulk ' ) == " magento_bulk "
29
+ $ subject ->getResource ()->getTable ( ' magento_bulk ' ) == "magento_bulk " &&
30
+ isset ( $ result [ 0 ][OperationInterface:: ID ])
31
31
) {
32
32
foreach ($ result as $ key => $ row ) {
33
33
$ result [$ key ][OperationInterface::ID ] = $ row ['id ' ];
You can’t perform that action at this time.
0 commit comments