From 7a549b1c32df2c5a4c35faaabd7e142fe4835fc3 Mon Sep 17 00:00:00 2001 From: All3kcis Date: Wed, 20 Jul 2016 16:57:26 +0200 Subject: [PATCH] Update entrepot.class.php Add trim on "libelle" in create function of entrepot --- htdocs/product/stock/class/entrepot.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 == '') {