From 3d8f756646655dcb71058d55e4e0463355d91603 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Thu, 15 Sep 2016 10:51:48 +0200 Subject: [PATCH] prevent space separator in module definition If we type in definition of dictionnary "code,libelle, color" we can't insert/update value... propose to allow typing space bettween field (better lisibility) and remove space after --- htdocs/admin/dict.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 65d9514e796..eae25599075 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -580,7 +580,7 @@ if ($id == 10) // Actions add or modify an entry into a dictionary if (GETPOST('actionadd') || GETPOST('actionmodify')) { - $listfield=explode(',',$tabfield[$id]); + $listfield=explode(',', str_replace(' ', '',$tabfield[$id])); $listfieldinsert=explode(',',$tabfieldinsert[$id]); $listfieldmodify=explode(',',$tabfieldinsert[$id]); $listfieldvalue=explode(',',$tabfieldvalue[$id]);