Skip to content

Commit d178a55

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public function _getHeaderColumns()
725725
protected function setHeaderColumns($customOptionsData, $stockItemRows)
726726
{
727727
$exportAttributes = count($this->_parameters["skip_attr"]) ?
728-
$this->_getExportAttrCodes() :
728+
array_intersect($this->_getExportMainAttrCodes(), $this->_getExportAttrCodes()) :
729729
$this->_getExportMainAttrCodes();
730730

731731
if (!$this->_headerColumns) {

0 commit comments

Comments
 (0)