fix module name finish % pandora_enterprise#8570
This commit is contained in:
parent
bc9bb070df
commit
c8daf0a977
|
@ -631,18 +631,7 @@ switch ($activeTab) {
|
|||
'message' => $message,
|
||||
];
|
||||
} else {
|
||||
// One item per module
|
||||
if (empty($name_modules)) {
|
||||
$statusProcessInDB = [
|
||||
'flag' => true,
|
||||
'message' => ui_print_error_message(
|
||||
__('No modules selected'),
|
||||
'',
|
||||
true
|
||||
),
|
||||
];
|
||||
} else {
|
||||
if (defined('METACONSOLE')) {
|
||||
if (is_metaconsole() === true) {
|
||||
$agents_ids = [];
|
||||
foreach ($id_agents as $id_agent_id) {
|
||||
$server_and_agent = explode('|', $id_agent_id);
|
||||
|
@ -662,13 +651,10 @@ switch ($activeTab) {
|
|||
} else {
|
||||
$agents[0] = $id_agents;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
foreach ($agents as $id_server => $id_agents) {
|
||||
// Any module
|
||||
if ($name_modules[0] == '0') {
|
||||
// Any module.
|
||||
if (empty($name_modules) === true || $name_modules[0] === '0') {
|
||||
$message .= visual_map_process_wizard_add_agents(
|
||||
$id_agents,
|
||||
$image,
|
||||
|
@ -710,13 +696,10 @@ switch ($activeTab) {
|
|||
$id_module = $agent->searchModules(
|
||||
['nombre' => $mod],
|
||||
1
|
||||
)->toArray();
|
||||
)->toArray()['id_agente_modulo'];
|
||||
|
||||
if (empty($id_module) === true) {
|
||||
continue;
|
||||
} else {
|
||||
$id_module = reset($id_module);
|
||||
$id_module = $id_module['id_agente_modulo'];
|
||||
}
|
||||
|
||||
$id_modules[] = $id_module;
|
||||
|
|
|
@ -533,7 +533,7 @@ echo '</div>';
|
|||
echo '</form>';
|
||||
|
||||
// Trick for it have a traduct text for javascript.
|
||||
echo '<span id="any_text" class="invisible">'.__('Any').'</span>';
|
||||
echo '<span id="any_text" class="invisible">'.__('None').'</span>';
|
||||
echo '<span id="none_text" class="invisible">'.__('None').'</span>';
|
||||
echo '<span id="loading_text" class="invisible">'.__('Loading...').'</span>';
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue