mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
Display import button only for LSobject type with configured ioFormat
This commit is contained in:
parent
939863465f
commit
d7ca2eea75
1 changed files with 7 additions and 5 deletions
|
@ -140,11 +140,13 @@ if(LSsession :: startLSsession()) {
|
|||
'url' => 'create.php?LSobject='.$LSobject,
|
||||
'action' => 'create'
|
||||
);
|
||||
$LSview_actions['import'] = array (
|
||||
'label' => 'Import',
|
||||
'url' => 'import.php?LSobject='.$LSobject,
|
||||
'action' => 'import'
|
||||
);
|
||||
if (!empty($object -> listValidIOformats())) {
|
||||
$LSview_actions['import'] = array (
|
||||
'label' => 'Import',
|
||||
'url' => 'import.php?LSobject='.$LSobject,
|
||||
'action' => 'import'
|
||||
);
|
||||
}
|
||||
}
|
||||
$LSview_actions['refresh'] = array (
|
||||
'label' => 'Refresh',
|
||||
|
|
Loading…
Reference in a new issue