diff --git a/inc/form.class.php b/inc/form.class.php index 196520c7b..00adaf99c 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -1276,19 +1276,17 @@ public function displayUserForm() { break; } - switch (count($result)) { - case 1: - reset($validators); - $validatorId = key($validators); - echo Html::hidden('formcreator_validator', ['value' => $validatorId]); - break; - case 2: - $validators = [0 => Dropdown::EMPTY_VALUE] + $validators; - echo '