Added event in process status validation when same extra id
This commit is contained in:
parent
ac679797a3
commit
e60433591e
|
@ -3352,7 +3352,7 @@ sub pandora_event ($$$$$$$$$$;$$$$$$$$$$$) {
|
||||||
# Validate events with the same event id
|
# Validate events with the same event id
|
||||||
if (defined ($id_extra) && $id_extra ne '') {
|
if (defined ($id_extra) && $id_extra ne '') {
|
||||||
logger($pa_config, "Updating events with extended id '$id_extra'.", 10);
|
logger($pa_config, "Updating events with extended id '$id_extra'.", 10);
|
||||||
db_do ($dbh, 'UPDATE ' . $event_table . ' SET estado = 1, ack_utimestamp = ? WHERE estado IN (1,2) AND id_extra=?', $utimestamp, $id_extra);
|
db_do ($dbh, 'UPDATE ' . $event_table . ' SET estado = 1, ack_utimestamp = ? WHERE estado IN (0,2) AND id_extra=?', $utimestamp, $id_extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create the event
|
# Create the event
|
||||||
|
|
Loading…
Reference in New Issue