diff --git a/htdocs/product/stock/class/entrepot.class.php b/htdocs/product/stock/class/entrepot.class.php index afcaec0bc6b..6d2b4200593 100644 --- a/htdocs/product/stock/class/entrepot.class.php +++ b/htdocs/product/stock/class/entrepot.class.php @@ -108,7 +108,9 @@ class Entrepot extends CommonObject function create($user) { global $conf; - + + $this->libelle = trim($this->libelle); + // Si libelle non defini, erreur if ($this->libelle == '') {