mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
If app has no filterable fields, skip that step
This commit is contained in:
parent
19757ba8bf
commit
270d8a9145
@ -21,6 +21,9 @@ class importexport_definitions_ui
|
|||||||
|
|
||||||
const _appname = 'importexport';
|
const _appname = 'importexport';
|
||||||
|
|
||||||
|
// To skip a step, step returns this
|
||||||
|
const SKIP = '-skip-';
|
||||||
|
|
||||||
public $public_functions = array(
|
public $public_functions = array(
|
||||||
'edit' => true,
|
'edit' => true,
|
||||||
'index' => true,
|
'index' => true,
|
||||||
@ -569,14 +572,28 @@ class importexport_definitions_ui
|
|||||||
if(!$content['name'] || !$content['type'] || !$content['plugin']) {
|
if(!$content['name'] || !$content['type'] || !$content['plugin']) {
|
||||||
$GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');");
|
$GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');");
|
||||||
}
|
}
|
||||||
if(!key_exists($next_step,$this->steps))
|
do {
|
||||||
{
|
if(!key_exists($next_step,$this->steps))
|
||||||
$this->wizard_content_template = $this->plugin->$next_step($content,$sel_options,$readonlys,$preserv);
|
{
|
||||||
}
|
$this->wizard_content_template = $this->plugin->$next_step($content,$sel_options,$readonlys,$preserv);
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
$this->wizard_content_template = $this->$next_step($content,$sel_options,$readonlys,$preserv);
|
{
|
||||||
}
|
$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))
|
if(!$this->can_edit($content))
|
||||||
{
|
{
|
||||||
$readonlys[$this->wizard_content_template] = true;
|
$readonlys[$this->wizard_content_template] = true;
|
||||||
|
@ -283,6 +283,11 @@ class importexport_wizard_basic_export_csv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$content['set_filter']['fields'])
|
||||||
|
{
|
||||||
|
// No fields
|
||||||
|
return importexport_definitions_ui::SKIP;
|
||||||
|
}
|
||||||
$sel_options = array();
|
$sel_options = array();
|
||||||
|
|
||||||
$preserv = $content;
|
$preserv = $content;
|
||||||
|
Loading…
Reference in New Issue
Block a user