Wip command center
This commit is contained in:
parent
ddc4b47d0b
commit
2f536c7577
|
@ -2824,6 +2824,11 @@ function alerts_ui_update_or_create_actions($update=true)
|
|||
$values['id_group'] = $group;
|
||||
$values['action_threshold'] = $action_threshold;
|
||||
$values['create_wu_integria'] = $create_wu_integria;
|
||||
|
||||
$name_check = db_get_value('name', 'talert_actions', 'name', $name);
|
||||
if ($name_check) {
|
||||
$result = '';
|
||||
} else {
|
||||
if ($update) {
|
||||
$values['name'] = $name;
|
||||
$values['id_alert_command'] = $id_alert_command;
|
||||
|
@ -2833,10 +2838,6 @@ function alerts_ui_update_or_create_actions($update=true)
|
|||
}
|
||||
|
||||
$result = (!$name) ? '' : alerts_update_alert_action($id, $values);
|
||||
} else {
|
||||
$name_check = db_get_value('name', 'talert_actions', 'name', $name);
|
||||
if ($name_check) {
|
||||
$result = '';
|
||||
} else {
|
||||
$result = alerts_create_alert_action(
|
||||
$name,
|
||||
|
|
Loading…
Reference in New Issue