bugfix
This commit is contained in:
parent
39f3869c0d
commit
1f30cab2f7
@ -334,13 +334,14 @@ class Product
|
|||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error=$langs->trans("Error")." : ".$this->db->error()." - ".$sql;
|
$this->error=$langs->trans("Error")." : ".$this->db->error()." - ".$sql;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -99,7 +99,7 @@ if ($_POST["action"] == 'vedit' &&
|
|||||||
$product->fetch($_POST["id"]);
|
$product->fetch($_POST["id"]);
|
||||||
$current_lang = $langs->getDefaultLang();
|
$current_lang = $langs->getDefaultLang();
|
||||||
|
|
||||||
foreach ( $product->multilangs as $key => &$value ) // enregistrement des nouvelles valeurs dans l'objet
|
foreach ( $product->multilangs as $key => $value ) // enregistrement des nouvelles valeurs dans l'objet
|
||||||
{
|
{
|
||||||
if ( $key == $current_lang )
|
if ( $key == $current_lang )
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user