2012-03-15 Vanessa Gil <vanessa.gil@artica.es>
* godmode/alerts/alert_actions.php godmode/agentes/modificar_agente.php godmode/alerts/configure_alert_template: Removed duplicated log entries. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ec6d0458a5
commit
fc4680e475
|
@ -1,3 +1,10 @@
|
||||||
|
2012-03-15 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
|
* godmode/alerts/alert_actions.php
|
||||||
|
godmode/agentes/modificar_agente.php
|
||||||
|
godmode/alerts/configure_alert_template: Removed
|
||||||
|
duplicated log entries.
|
||||||
|
|
||||||
2012-03-15 Hirofumi Kosaka <kosaka@rworks.jp>
|
2012-03-15 Hirofumi Kosaka <kosaka@rworks.jp>
|
||||||
|
|
||||||
* include/functions_api.php: Fixed the function "set_new_agent"
|
* include/functions_api.php: Fixed the function "set_new_agent"
|
||||||
|
|
|
@ -54,7 +54,6 @@ if (!empty($agent_to_delete)) {
|
||||||
if (check_acl ($config["id_user"], $id_grupo, "AW")==1) {
|
if (check_acl ($config["id_user"], $id_grupo, "AW")==1) {
|
||||||
$id_agentes[0] = $id_agente;
|
$id_agentes[0] = $id_agente;
|
||||||
$result = agents_delete_agent($id_agentes);
|
$result = agents_delete_agent($id_agentes);
|
||||||
db_pandora_audit("Agent management", "Delete Agent " . $agent_name);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// NO permissions.
|
// NO permissions.
|
||||||
|
|
|
@ -252,10 +252,10 @@ if ($delete_action) {
|
||||||
$result = alerts_delete_alert_action ($id);
|
$result = alerts_delete_alert_action ($id);
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
db_pandora_audit("Command management", "Delete alert action " . $id);
|
db_pandora_audit("Command management", "Delete alert action #" . $id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
db_pandora_audit("Command management", "Fail try to delete alert action " . $id);
|
db_pandora_audit("Command management", "Fail try to delete alert action #" . $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui_print_result_message ($result,
|
ui_print_result_message ($result,
|
||||||
|
|
|
@ -281,10 +281,10 @@ function update_template ($step) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
db_pandora_audit("Template alert management", "Update alert template " . $id, false, false, json_encode($values));
|
db_pandora_audit("Template alert management", "Update alert template #" . $id, false, false, json_encode($values));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
db_pandora_audit("Template alert management", "Fail try to update alert template " . $id, false, false, json_encode($values));
|
db_pandora_audit("Template alert management", "Fail try to update alert template #" . $id, false, false, json_encode($values));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
@ -371,7 +371,7 @@ if ($create_template) {
|
||||||
}
|
}
|
||||||
if ($result) {
|
if ($result) {
|
||||||
//db_pandora_audit("Command management", "Create alert command " . $result, false, false, json_encode($values));
|
//db_pandora_audit("Command management", "Create alert command " . $result, false, false, json_encode($values));
|
||||||
db_pandora_audit("Template alert management", "Create alert template " . $result, false, false, json_encode($values));
|
db_pandora_audit("Template alert management", "Create alert template #" . $result, false, false, json_encode($values));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//db_pandora_audit("Command management", "Fail try to create alert command", false, false, json_encode($values));
|
//db_pandora_audit("Command management", "Fail try to create alert command", false, false, json_encode($values));
|
||||||
|
|
Loading…
Reference in New Issue