mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
#11679 Fix edit module link in search and fix checkbox switch bug in edit module
This commit is contained in:
parent
9ee952827e
commit
de22886cec
@ -1387,11 +1387,10 @@ $table_advanced->data['made_enabled'][0] = html_print_checkbox_switch(
|
|||||||
'made_enabled',
|
'made_enabled',
|
||||||
1,
|
1,
|
||||||
(bool) $made_enabled,
|
(bool) $made_enabled,
|
||||||
false,
|
true,
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
false,
|
|
||||||
'wp100 static'
|
'wp100 static'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ if (!$modules || !$searchModules) {
|
|||||||
$module['datos'] = modules_get_last_value($module['id_agente_modulo']);
|
$module['datos'] = modules_get_last_value($module['id_agente_modulo']);
|
||||||
$module['module_name'] = $module['nombre'];
|
$module['module_name'] = $module['nombre'];
|
||||||
|
|
||||||
$linked_module_name = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'">';
|
$linked_module_name = '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$module['id_agente'].'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'">';
|
||||||
$linked_module_name .= $module['module_name'];
|
$linked_module_name .= $module['module_name'];
|
||||||
$linked_module_name .= '</a>';
|
$linked_module_name .= '</a>';
|
||||||
// To search the monitor status
|
// To search the monitor status
|
||||||
@ -219,7 +219,7 @@ if (!$modules || !$searchModules) {
|
|||||||
|
|
||||||
$url_edit = 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$module['id_agente'].'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module=1';
|
$url_edit = 'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$module['id_agente'].'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module=1';
|
||||||
|
|
||||||
$edit_module = '<a href="'.$url_edit.'">'.html_print_image('images/edit.svg', true).'</a>';
|
$edit_module = '<a href="'.$url_edit.'">'.html_print_image('images/edit.svg', true, ['class' => 'invert_filter main_menu_icon']).'</a>';
|
||||||
} else {
|
} else {
|
||||||
$edit_module = '';
|
$edit_module = '';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user