mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
added alert message on module deletion at agent modules view
This commit is contained in:
parent
ae47e7c03a
commit
8e55522e3f
@ -1714,14 +1714,17 @@ if ($delete_module) { // DELETE agent module !
|
|||||||
ui_print_error_message(__('There was a problem deleting the module'));
|
ui_print_error_message(__('There was a problem deleting the module'));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui_print_success_message(__('Module deleted succesfully'));
|
|
||||||
|
echo '<script type="text/javascript">
|
||||||
|
location="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente='.$id_agente.'";
|
||||||
|
alert("'.__('Module deleted succesfully').'");
|
||||||
|
</script>';
|
||||||
|
|
||||||
$agent = db_get_row ('tagente', 'id_agente', $id_agente);
|
$agent = db_get_row ('tagente', 'id_agente', $id_agente);
|
||||||
db_pandora_audit("Agent management",
|
db_pandora_audit("Agent management",
|
||||||
"Deleted module '".$module_data["nombre"]."' for agent ".$agent["alias"]);
|
"Deleted module '".$module_data["nombre"]."' for agent ".$agent["alias"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Location: index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=module&id_agente=$id_agente");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user