//small import improvement

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16525 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-07-23 09:08:04 +00:00
parent a33e23e100
commit 791b15dc07
@@ -719,6 +719,10 @@ class AdminImportControllerCore extends AdminController
$res = array();
foreach (self::$column_mask as $type => $nb)
$res[$type] = isset($row[$nb]) ? $row[$nb] : null;
if (Tools::getValue('truncate')) //if you choose to truncate table before import the column id is remove from the CSV file.
unset($res['id']);
return $res;
}