Skip to content

Commit eb5f201

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

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,10 @@ protected function setHeaderColumns($customOptionsData, $stockItemRows)
727727
$exportAttributes = (
728728
array_key_exists("skip_attr", $this->_parameters) && count($this->_parameters["skip_attr"])
729729
) ?
730-
array_intersect($this->_getExportMainAttrCodes(), $this->_getExportAttrCodes()) :
730+
array_intersect(
731+
$this->_getExportMainAttrCodes(),
732+
$this->_customHeadersMapping($this->_getExportAttrCodes())
733+
) :
731734
$this->_getExportMainAttrCodes();
732735

733736
if (!$this->_headerColumns) {

0 commit comments

Comments
 (0)