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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17684 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-10-02 12:08:41 +00:00
parent 00cb52c6f9
commit 976ffc3455
6 changed files with 35 additions and 9 deletions
+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);