diff --git a/library/Scores/Field.php b/library/Scores/Field.php index be4e644c..e012c3cc 100644 --- a/library/Scores/Field.php +++ b/library/Scores/Field.php @@ -951,12 +951,12 @@ Class Fields $valeurs = explode(',', $valeur); foreach($valeurs as $valeur) { if($valeur != ' ' and !empty($valeur)) - $values = array_merge($values, $this->fj($name, $valeur)); + $values = array_merge($values, $this->fj($name, trim($valeur))); } } return ($values); } - + protected function fj($name, $valeur) { $table = new Table_Formejuridiques(); @@ -1001,7 +1001,7 @@ Class Fields return (array($valeur)); return ($return); } - + protected function nafArbo($key, $valeur) { $value = array(); @@ -1026,7 +1026,7 @@ Class Fields } return ($value); } - + public function __construct($batch = false) { if(!$batch) {