supannRessourceEtat & supannRessourceEtatDate: add empty possible value to required components to allow empty value

This commit is contained in:
Benjamin Renard 2021-07-07 13:45:00 +02:00
parent 3c7ec2890a
commit 25162f406d
2 changed files with 4 additions and 0 deletions

View file

@ -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,
),

View file

@ -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,
),