Skip to content

Commit

Permalink
MAGETWO-66655: Stop $this->validColumnNames array from growing and gr…
Browse files Browse the repository at this point in the history
…owing #8928
  • Loading branch information
vrann authored Mar 25, 2017
2 parents 8209e53 + 7b1c095 commit e198c01
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions app/code/Magento/CustomerImportExport/Model/Import/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@ public function getEntityTable()
*/
public function getValidColumnNames()
{
$this->validColumnNames = array_merge(
$this->validColumnNames,
$this->customerFields
return array_unique(
array_merge(
$this->validColumnNames,
$this->customerFields
)
);

return $this->validColumnNames;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,13 @@ protected function _prepareRowForDb(array $rowData)
*/
public function getValidColumnNames()
{
$this->validColumnNames = array_merge(
$this->validColumnNames,
$this->_customerAttributes,
$this->_addressAttributes,
$this->_customerEntity->getValidColumnNames()
return array_unique(
array_merge(
$this->validColumnNames,
$this->_customerAttributes,
$this->_addressAttributes,
$this->_customerEntity->getValidColumnNames()
)
);

return $this->validColumnNames;
}
}

0 comments on commit e198c01

Please sign in to comment.