Merge branch 'ent-4774-welcome-to-pandorafms' into ent-EDF
This commit is contained in:
commit
0b610cd8ba
|
@ -275,7 +275,7 @@ if ($new_agent) {
|
|||
|
||||
$table_alias = '<div class="label_select"><p class="input_label">'.__('Alias').': '.ui_print_help_tip(__('Characters /,\,|,%,#,&,$ will be ignored'), true).'</p>';
|
||||
$table_alias .= '<div class='.$label_select_parent.'>';
|
||||
$table_alias .= '<div class='.$label_select_child_left.'>'.html_print_input_text('alias', $alias, '', 50, 100, true).'</div>';
|
||||
$table_alias .= '<div class='.$label_select_child_left.'>'.html_print_input_text('alias', $alias, '', 50, 100, true, false, true).'</div>';
|
||||
if ($new_agent) {
|
||||
$table_alias .= '<div class="label_select_child_right">'.html_print_checkbox_switch('alias_as_name', 1, $config['alias_as_name'], true).__('Use alias as name').'</div>';
|
||||
}
|
||||
|
|
|
@ -211,7 +211,13 @@ class WelcomeWindow extends Wizard
|
|||
$this->step = $config['welcome_state'];
|
||||
|
||||
// Get step available.
|
||||
if (empty($config['welcome_id_agent']) === true) {
|
||||
if (empty($config['welcome_mail_configured']) === true
|
||||
&& get_parameter('sec2') == 'godmode/setup/setup'
|
||||
&& get_parameter('section', '') == 'general'
|
||||
&& get_parameter('update_config', false) !== false
|
||||
) {
|
||||
$this->step = W_CONFIGURE_MAIL;
|
||||
} else if (empty($config['welcome_id_agent']) === true) {
|
||||
$this->step = W_CREATE_AGENT;
|
||||
} else if (empty($config['welcome_module']) === true) {
|
||||
$this->step = W_CREATE_MODULE;
|
||||
|
@ -219,8 +225,6 @@ class WelcomeWindow extends Wizard
|
|||
$this->step = W_CREATE_ALERT;
|
||||
} else if (empty($config['welcome_task']) === true) {
|
||||
$this->step = W_CREATE_TASK;
|
||||
} else if (empty($config['welcome_mail_configured']) === true) {
|
||||
$this->step = W_CONFIGURE_MAIL;
|
||||
}
|
||||
|
||||
return $this->step;
|
||||
|
|
Loading…
Reference in New Issue