Skip to content

Commit 56bf57e

Browse files
author
Roman Lytvynenko
committed
MC-19661: Export Products bug. I can't exclude attributes from CSV file.
1 parent d178a55 commit 56bf57e

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Export

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Export/Product.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,9 @@ public function _getHeaderColumns()
724724
*/
725725
protected function setHeaderColumns($customOptionsData, $stockItemRows)
726726
{
727-
$exportAttributes = count($this->_parameters["skip_attr"]) ?
727+
$exportAttributes = (
728+
array_key_exists("skip_attr", $this->_parameters) && count($this->_parameters["skip_attr"])
729+
) ?
728730
array_intersect($this->_getExportMainAttrCodes(), $this->_getExportAttrCodes()) :
729731
$this->_getExportMainAttrCodes();
730732

0 commit comments

Comments
 (0)