#8533 change of default value

This commit is contained in:
Daniel Maya 2022-03-31 09:38:07 +02:00
parent c5d0237c23
commit 5e37c264c1
2 changed files with 8 additions and 0 deletions

View File

@ -1847,6 +1847,10 @@ $class = 'databox filters';
1 => __('Show module data'),
];
if ($action === 'new' && empty($show_type) === true) {
$show_type = 1;
}
html_print_select(
$show_select,
'show_type',

View File

@ -256,6 +256,10 @@ class AgentModuleWidget extends Widget
1 => __('Show module data'),
];
if (empty($this->values['mModules']) === true && empty($this->values['mTypeShow'])) {
$this->values['mTypeShow'] = 1;
}
$inputs[] = [
'class' => 'flex flex-row',
'label' => __('Information to be shown'),