// BugFix : Missing params multilang

This commit is contained in:
mDeflotte
2011-12-21 14:07:42 +00:00
parent 2924e05cad
commit 63e2220510
5 changed files with 16 additions and 22 deletions
+2 -2
View File
@@ -395,8 +395,8 @@ abstract class ObjectModelCore
foreach ($fields as &$field)
{
foreach (array_keys($field) AS $key)
if (!Validate::isTableOrIdentifier($key))
throw new PrestashopException('key '.$key.' is not table or identifier, ');
if (!Validate::isTableOrIdentifier($key))
throw new PrestashopException('key '.$key.' is not table or identifier, ');
$field[$this->def['primary']] = (int)$this->id;
if (isset($assos[$this->def['table'].'_lang']) && $assos[$this->def['table'].'_lang']['type'] == 'fk_shop')