File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed
app/code/Magento/CustomerImportExport/Model/Import
lib/internal/Magento/Framework/Model/ResourceModel/Type/Db/Pdo Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -569,11 +569,11 @@ public function getEntityTable()
569
569
*/
570
570
public function getValidColumnNames ()
571
571
{
572
- $ this ->validColumnNames = array_merge (
573
- $ this ->validColumnNames ,
574
- $ this ->customerFields
572
+ return array_unique (
573
+ array_merge (
574
+ $ this ->validColumnNames ,
575
+ $ this ->customerFields
576
+ )
575
577
);
576
-
577
- return $ this ->validColumnNames ;
578
578
}
579
579
}
Original file line number Diff line number Diff line change @@ -488,13 +488,13 @@ protected function _prepareRowForDb(array $rowData)
488
488
*/
489
489
public function getValidColumnNames ()
490
490
{
491
- $ this ->validColumnNames = array_merge (
492
- $ this ->validColumnNames ,
493
- $ this ->_customerAttributes ,
494
- $ this ->_addressAttributes ,
495
- $ this ->_customerEntity ->getValidColumnNames ()
491
+ return array_unique (
492
+ array_merge (
493
+ $ this ->validColumnNames ,
494
+ $ this ->_customerAttributes ,
495
+ $ this ->_addressAttributes ,
496
+ $ this ->_customerEntity ->getValidColumnNames ()
497
+ )
496
498
);
497
-
498
- return $ this ->validColumnNames ;
499
499
}
500
500
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Model \ResourceModel \Type \Db \Pdo ;
7
7
8
+ // @codingStandardsIgnoreFile
9
+
8
10
use Magento \Framework \App \ResourceConnection \ConnectionAdapterInterface ;
9
11
use Magento \Framework \DB ;
10
12
use Magento \Framework \App \ObjectManager ;
You can’t perform that action at this time.
0 commit comments