mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
#10307 added user info in in progress status event
This commit is contained in:
parent
35aa64b281
commit
e5a18f67a7
@ -2018,7 +2018,7 @@ function events_change_status(
|
|||||||
// Update ack info if the new status is validated.
|
// Update ack info if the new status is validated.
|
||||||
$ack_utimestamp = 0;
|
$ack_utimestamp = 0;
|
||||||
$ack_user = $config['id_user'];
|
$ack_user = $config['id_user'];
|
||||||
if ((int) $new_status === EVENT_STATUS_VALIDATED) {
|
if ((int) $new_status === EVENT_STATUS_VALIDATED || (int) $new_status === EVENT_STATUS_INPROCESS) {
|
||||||
$ack_utimestamp = time();
|
$ack_utimestamp = time();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4814,7 +4814,7 @@ function events_page_general($event)
|
|||||||
$data = [];
|
$data = [];
|
||||||
$data[0] = __('Acknowledged by');
|
$data[0] = __('Acknowledged by');
|
||||||
|
|
||||||
if ($event['estado'] == 1) {
|
if ($event['estado'] == 1 || $event['estado'] == 2) {
|
||||||
if (empty($event['id_usuario']) === true) {
|
if (empty($event['id_usuario']) === true) {
|
||||||
$user_ack = __('Autovalidated');
|
$user_ack = __('Autovalidated');
|
||||||
} else {
|
} else {
|
||||||
@ -4948,8 +4948,7 @@ function events_page_general_acknowledged($event_id)
|
|||||||
global $config;
|
global $config;
|
||||||
$Acknowledged = '';
|
$Acknowledged = '';
|
||||||
$event = db_get_row('tevento', 'id_evento', $event_id);
|
$event = db_get_row('tevento', 'id_evento', $event_id);
|
||||||
hd($event['ack_utimestamp'], true);
|
if ($event !== false && ($event['estado'] == 1 || $event['estado'] == 2)) {
|
||||||
if ($event !== false && $event['estado'] == 1) {
|
|
||||||
$user_ack = db_get_value(
|
$user_ack = db_get_value(
|
||||||
'fullname',
|
'fullname',
|
||||||
'tusuario',
|
'tusuario',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user