Skip to content

Commit

Permalink
Merge pull request #964 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests
  • Loading branch information
vrann authored Mar 25, 2017
2 parents 3646356 + 1dbc96e commit 7c3dc9a
Show file tree
Hide file tree
Showing 3 changed files with 14 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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
namespace Magento\Framework\Model\ResourceModel\Type\Db\Pdo;

// @codingStandardsIgnoreFile

use Magento\Framework\App\ResourceConnection\ConnectionAdapterInterface;
use Magento\Framework\DB;
use Magento\Framework\App\ObjectManager;
Expand Down

0 comments on commit 7c3dc9a

Please sign in to comment.