From 791b15dc07cde028a904e3131b759c422b2036d3 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 23 Jul 2012 09:08:04 +0000 Subject: [PATCH] //small import improvement git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16525 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminImportController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 021fd1dd4..ca7873695 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -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; }