add owner when validate event
This commit is contained in:
parent
d6ac646046
commit
f22cc5b22b
|
@ -612,14 +612,12 @@ function events_update_status($id_evento, $status, $filter=null, $history=false)
|
|||
'UPDATE %s
|
||||
SET estado = %d,
|
||||
ack_utimestamp = %d,
|
||||
id_usuario = "%s",
|
||||
owner_user = "%s"
|
||||
id_usuario = "%s"
|
||||
WHERE id_evento IN (%s)',
|
||||
$table,
|
||||
$status,
|
||||
time(),
|
||||
$config['id_user'],
|
||||
$config['id_user'],
|
||||
join(',', $target_ids)
|
||||
);
|
||||
}
|
||||
|
@ -635,6 +633,14 @@ function events_update_status($id_evento, $status, $filter=null, $history=false)
|
|||
break;
|
||||
|
||||
case EVENT_STATUS_VALIDATED:
|
||||
events_change_owner(
|
||||
$id_evento,
|
||||
$config['id_user'],
|
||||
false,
|
||||
is_metaconsole() ? true : false,
|
||||
$history
|
||||
);
|
||||
|
||||
$status_string = 'Validated';
|
||||
break;
|
||||
|
||||
|
@ -1872,6 +1878,16 @@ function events_change_status(
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($new_status == EVENT_STATUS_VALIDATED) {
|
||||
events_change_owner(
|
||||
$id_event,
|
||||
$config['id_user'],
|
||||
false,
|
||||
$meta,
|
||||
$history
|
||||
);
|
||||
}
|
||||
|
||||
events_comment(
|
||||
$id_event,
|
||||
'',
|
||||
|
|
Loading…
Reference in New Issue