mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
If app has no filterable fields, skip that step
This commit is contained in:
parent
389d8cea28
commit
de16728ded
@ -21,6 +21,9 @@ class importexport_definitions_ui
|
||||
|
||||
const _appname = 'importexport';
|
||||
|
||||
// To skip a step, step returns this
|
||||
const SKIP = '-skip-';
|
||||
|
||||
public $public_functions = array(
|
||||
'edit' => true,
|
||||
'index' => true,
|
||||
@ -567,14 +570,28 @@ class importexport_definitions_ui
|
||||
if(!$content['name'] || !$content['type'] || !$content['plugin']) {
|
||||
$GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');");
|
||||
}
|
||||
if(!key_exists($next_step,$this->steps))
|
||||
{
|
||||
$this->wizard_content_template = $this->plugin->$next_step($content,$sel_options,$readonlys,$preserv);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->wizard_content_template = $this->$next_step($content,$sel_options,$readonlys,$preserv);
|
||||
}
|
||||
do {
|
||||
if(!key_exists($next_step,$this->steps))
|
||||
{
|
||||
$this->wizard_content_template = $this->plugin->$next_step($content,$sel_options,$readonlys,$preserv);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->wizard_content_template = $this->$next_step($content,$sel_options,$readonlys,$preserv);
|
||||
}
|
||||
if($this->wizard_content_template == self::SKIP)
|
||||
{
|
||||
if(!key_exists($content['step'],$this->steps))
|
||||
{
|
||||
$next_step = $this->plugin->$content['step']($content);
|
||||
}
|
||||
else
|
||||
{
|
||||
$next_step = $this->$content['step']($content);
|
||||
}
|
||||
}
|
||||
} while($this->wizard_content_template == self::SKIP);
|
||||
|
||||
if(!$this->can_edit($content))
|
||||
{
|
||||
$readonlys[$this->wizard_content_template] = true;
|
||||
|
@ -273,6 +273,11 @@ class importexport_wizard_basic_export_csv
|
||||
}
|
||||
}
|
||||
|
||||
if(!$content['set_filter']['fields'])
|
||||
{
|
||||
// No fields
|
||||
return importexport_definitions_ui::SKIP;
|
||||
}
|
||||
$sel_options = array();
|
||||
|
||||
$preserv = $content;
|
||||
|
Loading…
Reference in New Issue
Block a user