mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
throw exception if there are no app profiles available for export
This commit is contained in:
parent
47286b9f7f
commit
318f85f651
@ -218,7 +218,10 @@ class importexport_export_ui {
|
|||||||
$content['selection'] = $prefs['selection'] ? $prefs['selection'] : $selection;
|
$content['selection'] = $prefs['selection'] ? $prefs['selection'] : $selection;
|
||||||
}
|
}
|
||||||
unset ($plugin_object);
|
unset ($plugin_object);
|
||||||
(array)$apps = importexport_helper_functions::get_apps('export');
|
$apps = importexport_helper_functions::get_apps('export');
|
||||||
|
//error_log(__METHOD__.__LINE__.array2string($apps));
|
||||||
|
if (empty($apps)) throw new Exception('Error: no application profiles available for export');
|
||||||
|
if (!is_array($apps) && $apps) $apps = (array)$apps;
|
||||||
$sel_options['appname'] = array('' => lang('Select one')) + array_combine($apps,$apps);
|
$sel_options['appname'] = array('' => lang('Select one')) + array_combine($apps,$apps);
|
||||||
$this->js->set_onload("set_style_by_class('tr','select_plugin','display','none');");
|
$this->js->set_onload("set_style_by_class('tr','select_plugin','display','none');");
|
||||||
if(!$_application && !$selected_plugin) {
|
if(!$_application && !$selected_plugin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user