[-] BO : fix #PSCFV-4596 : added an option for to force the id during CSV import

This commit is contained in:
lLefevre committed 2012-10-02 12:08:41 +00:00
1 parent 991fed2f69
commit 1429851fd1
6 files changed
+35 -9

No files matched your search

+1 -1
View File
@@ -458,7 +458,7 @@ abstract class ObjectModelCore
}
// Database insertion
if (isset($this->id))
if (isset($this->id) && !Tools::getValue('forceIDs'))
unset($this->id);
if (Shop::checkIdShopDefault($this->def['table']))
$this->id_shop_default = min($id_shop_list);