mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
create : Fixed bug - display data entry form selection only when it's necessary
This commit is contained in:
parent
6664d44e81
commit
a4ae5741e0
2 changed files with 2 additions and 1 deletions
|
@ -49,7 +49,7 @@ if(LSsession :: startLSsession()) {
|
|||
$GLOBALS['Smarty'] -> assign('LSform_dataEntryForm',(string)$_REQUEST['LSform_dataEntryForm']);
|
||||
}
|
||||
|
||||
$GLOBALS['Smarty'] -> assign('listAvailableDataEntryForm',array_merge(array(''=>''),LSform :: listAvailableDataEntryForm($LSobject)));
|
||||
$GLOBALS['Smarty'] -> assign('listAvailableDataEntryForm',LSform :: listAvailableDataEntryForm($LSobject));
|
||||
$GLOBALS['Smarty'] -> assign('DataEntryFormLabel',_('Data entry form'));
|
||||
|
||||
if ($form->validate()) {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
{if !empty($listAvailableDataEntryForm)}
|
||||
<p class='LSform_listAvailableDataEntryForm'><label>{$DataEntryFormLabel}
|
||||
<select id='LSform_listAvailableDataEntryForm'>
|
||||
<option value=''>--</option>
|
||||
{html_options options=$listAvailableDataEntryForm selected=$LSform_dataEntryForm}
|
||||
</select>
|
||||
</label>
|
||||
|
|
Loading…
Reference in a new issue