mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
fix inherit ack timestamp feature
This commit is contained in:
parent
8029125929
commit
cf26f4c32a
@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user