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, 'url' => 'create.php?LSobject='.$LSobject,
'action' => 'create' 'action' => 'create'
); );
$LSview_actions['import'] = array ( if (!empty($object -> listValidIOformats())) {
'label' => 'Import', $LSview_actions['import'] = array (
'url' => 'import.php?LSobject='.$LSobject, 'label' => 'Import',
'action' => 'import' 'url' => 'import.php?LSobject='.$LSobject,
); 'action' => 'import'
);
}
} }
$LSview_actions['refresh'] = array ( $LSview_actions['refresh'] = array (
'label' => 'Refresh', 'label' => 'Refresh',