From 25162f406dbbd472cc4dcdcb759225ad217f3fbf Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 7 Jul 2021 13:45:00 +0200 Subject: [PATCH] supannRessourceEtat & supannRessourceEtatDate: add empty possible value to required components to allow empty value --- src/includes/class/class.LSformElement_supannRessourceEtat.php | 2 ++ .../class/class.LSformElement_supannRessourceEtatDate.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/includes/class/class.LSformElement_supannRessourceEtat.php b/src/includes/class/class.LSformElement_supannRessourceEtat.php index c080c4f3..989c8b8f 100644 --- a/src/includes/class/class.LSformElement_supannRessourceEtat.php +++ b/src/includes/class/class.LSformElement_supannRessourceEtat.php @@ -39,12 +39,14 @@ class LSformElement_supannRessourceEtat extends LSformElement_supannCompositeAtt 'ressource' => array ( 'label' => _('Resource'), 'type' => 'select', + 'possible_values' => array('' => '-'), 'get_possible_values' => 'supannGetRessourcePossibleValues', 'required' => true, ), 'etat' => array ( 'label' => _('State'), 'type' => 'select', + 'possible_values' => array('' => '-'), 'get_possible_values' => 'supannGetRessourceEtatPossibleValues', 'required' => true, ), diff --git a/src/includes/class/class.LSformElement_supannRessourceEtatDate.php b/src/includes/class/class.LSformElement_supannRessourceEtatDate.php index d20900fc..67948370 100644 --- a/src/includes/class/class.LSformElement_supannRessourceEtatDate.php +++ b/src/includes/class/class.LSformElement_supannRessourceEtatDate.php @@ -39,12 +39,14 @@ class LSformElement_supannRessourceEtatDate extends LSformElement_supannComposit 'ressource' => array ( 'label' => _('Resource'), 'type' => 'select', + 'possible_values' => array('' => '-'), 'get_possible_values' => 'supannGetRessourcePossibleValues', 'required' => true, ), 'etat' => array ( 'label' => _('State'), 'type' => 'select', + 'possible_values' => array('' => '-'), 'get_possible_values' => 'supannGetRessourceEtatPossibleValues', 'required' => true, ),