Display import button only for LSobject type with configured ioFormat

This commit is contained in:
Benjamin Renard 2015-07-30 18:13:07 +02:00
parent 939863465f
commit d7ca2eea75

View file

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