mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
supannRessourceEtat & supannRessourceEtatDate: add empty possible value to required components to allow empty value
This commit is contained in:
parent
3c7ec2890a
commit
25162f406d
2 changed files with 4 additions and 0 deletions
|
@ -39,12 +39,14 @@ class LSformElement_supannRessourceEtat extends LSformElement_supannCompositeAtt
|
||||||
'ressource' => array (
|
'ressource' => array (
|
||||||
'label' => _('Resource'),
|
'label' => _('Resource'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'possible_values' => array('' => '-'),
|
||||||
'get_possible_values' => 'supannGetRessourcePossibleValues',
|
'get_possible_values' => 'supannGetRessourcePossibleValues',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
),
|
),
|
||||||
'etat' => array (
|
'etat' => array (
|
||||||
'label' => _('State'),
|
'label' => _('State'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'possible_values' => array('' => '-'),
|
||||||
'get_possible_values' => 'supannGetRessourceEtatPossibleValues',
|
'get_possible_values' => 'supannGetRessourceEtatPossibleValues',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
),
|
),
|
||||||
|
|
|
@ -39,12 +39,14 @@ class LSformElement_supannRessourceEtatDate extends LSformElement_supannComposit
|
||||||
'ressource' => array (
|
'ressource' => array (
|
||||||
'label' => _('Resource'),
|
'label' => _('Resource'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'possible_values' => array('' => '-'),
|
||||||
'get_possible_values' => 'supannGetRessourcePossibleValues',
|
'get_possible_values' => 'supannGetRessourcePossibleValues',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
),
|
),
|
||||||
'etat' => array (
|
'etat' => array (
|
||||||
'label' => _('State'),
|
'label' => _('State'),
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
|
'possible_values' => array('' => '-'),
|
||||||
'get_possible_values' => 'supannGetRessourceEtatPossibleValues',
|
'get_possible_values' => 'supannGetRessourceEtatPossibleValues',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue