mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#12387 bug agent module widget edit agent
This commit is contained in:
parent
d05ffaac56
commit
05be3e143e
@ -1740,20 +1740,37 @@ function html_print_select_multiple_modules_filtered(array $data):string
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= html_print_input(
|
if (is_metaconsole() === true) {
|
||||||
[
|
$output .= html_print_input(
|
||||||
'label' => __('Agents'),
|
[
|
||||||
'label_class' => 'font-title-font',
|
'label' => __('Agents'),
|
||||||
'type' => 'select_from_sql',
|
'label_class' => 'font-title-font',
|
||||||
'sql' => 'SELECT `id_agente`,`nombre` FROM tagente',
|
'type' => 'select',
|
||||||
'name' => 'filtered-module-agents-'.$uniqId,
|
'fields' => $agents,
|
||||||
'selected' => explode(',', $data['mAgents']),
|
'name' => 'filtered-module-agents-'.$uniqId,
|
||||||
'return' => true,
|
'selected' => explode(',', $data['mAgents']),
|
||||||
'multiple' => true,
|
'return' => true,
|
||||||
'style' => 'min-width: 200px;max-width:200px;',
|
'multiple' => true,
|
||||||
'script' => 'fmModuleChange(\''.$uniqId.'\', '.(int) is_metaconsole().')',
|
'style' => 'min-width: 200px;max-width:200px;',
|
||||||
]
|
'script' => 'fmModuleChange(\''.$uniqId.'\', '.(int) is_metaconsole().')',
|
||||||
);
|
]
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
$output .= html_print_input(
|
||||||
|
[
|
||||||
|
'label' => __('Agents'),
|
||||||
|
'label_class' => 'font-title-font',
|
||||||
|
'type' => 'select_from_sql',
|
||||||
|
'sql' => 'SELECT `id_agente`,`nombre` FROM tagente',
|
||||||
|
'name' => 'filtered-module-agents-'.$uniqId,
|
||||||
|
'selected' => explode(',', $data['mAgents']),
|
||||||
|
'return' => true,
|
||||||
|
'multiple' => true,
|
||||||
|
'style' => 'min-width: 200px;max-width:200px;',
|
||||||
|
'script' => 'fmModuleChange(\''.$uniqId.'\', '.(int) is_metaconsole().')',
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$commonModules = 0;
|
$commonModules = 0;
|
||||||
if (empty($data['mShowCommonModules']) === false) {
|
if (empty($data['mShowCommonModules']) === false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user