From a773652c04e4158ab9661e48db7fac0b97106dcd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 14 Jul 2021 14:37:07 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/class/commonobject.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 51254bede5d..d050af4883a 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -5918,8 +5918,10 @@ abstract class CommonObject } elseif (is_array($this->fields[$key]['arrayofkeyval'])) { $param['options'] = $this->fields[$key]['arrayofkeyval']; $type = $this->fields[$key]['type']; - if(!in_array($type, array('select', 'checkbox', 'radio'))) { + if (!in_array($type, array('select', 'checkbox', 'radio'))) { $type = 'select'; + } else { + $type = $this->fields[$key]['type']; } } else { $param['options'] = array();