Skip to content

Commit 9eac20d

Browse files
author
Oleksandr Dubovyk
committed
MC-34616: Newsletter Subscribers grid only exports current page records with 'EXCEL XML' option
- static fix
1 parent 9a6fff5 commit 9eac20d

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Backend/Block/Widget/Grid

1 file changed

+6
-1
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Export.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,12 @@ public function _exportIterateCollection($callback, array $args)
278278

279279
$collection = $this->_getRowCollection($originalCollection);
280280
foreach ($collection as $item) {
281-
call_user_func_array([$this, $callback], array_merge([$item], $args));
281+
//phpcs:ignore Magento2.Functions.DiscouragedFunction
282+
call_user_func_array(
283+
[$this, $callback],
284+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
285+
array_merge([$item], $args)
286+
);
282287
}
283288
}
284289
}

0 commit comments

Comments
 (0)