fix inherit ack timestamp feature

This commit is contained in:
alejandro.campos@artica.es 2023-07-27 15:11:15 +02:00
parent 8029125929
commit cf26f4c32a

View File

@ -13114,16 +13114,14 @@ function api_set_create_event($id, $trash1, $other, $returnType)
if ($validation) { if ($validation) {
foreach ($validation as $val) { foreach ($validation as $val) {
if ((bool) $config['keep_in_process_status_extra_id'] === true) { if ((bool) $config['keep_in_process_status_extra_id'] === true
// Inherit status when previous event was in "in process" status. && (int) $val['estado'] === EVENT_STATUS_INPROCESS
if ((int) $val['estado'] === EVENT_STATUS_INPROCESS && (int) $values['status'] === 0) { && (int) $values['status'] === 0
$values['status'] = 2; ) {
} $values['status'] = 2;
// Always inherit ack_utimestamp.
$ack_utimestamp = $val['ack_utimestamp']; $ack_utimestamp = $val['ack_utimestamp'];
} }
api_set_validate_event_by_id($val['id_evento']); api_set_validate_event_by_id($val['id_evento']);
} }
} }