Fixed issue with alert actions update
This commit is contained in:
parent
9183110028
commit
533a94b09e
pandora_console/include
|
@ -2825,8 +2825,9 @@ function alerts_ui_update_or_create_actions($update=true)
|
||||||
$values['action_threshold'] = $action_threshold;
|
$values['action_threshold'] = $action_threshold;
|
||||||
$values['create_wu_integria'] = $create_wu_integria;
|
$values['create_wu_integria'] = $create_wu_integria;
|
||||||
|
|
||||||
$name_check = db_get_value('name', 'talert_actions', 'name', $name);
|
// If this alert has the same name, not valid.
|
||||||
if ($name_check) {
|
$name_check = db_get_row('talert_actions', 'name', $name);
|
||||||
|
if (empty($name_check) === false && (int) $name_check['id'] !== (int) $id) {
|
||||||
$result = '';
|
$result = '';
|
||||||
} else {
|
} else {
|
||||||
if ($update) {
|
if ($update) {
|
||||||
|
|
Loading…
Reference in New Issue