From b4278a69875c00fd17a7273ddf1fd94b57782284 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Thu, 23 Sep 2021 08:25:32 +0200 Subject: [PATCH] Supportability: Add UserId in EventIssue if 'userinfo' field is empty --- core/event.class.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/event.class.inc.php b/core/event.class.inc.php index 9e2ea7c37..78a50f2bb 100644 --- a/core/event.class.inc.php +++ b/core/event.class.inc.php @@ -222,6 +222,10 @@ class EventIssue extends Event // $this->Set('page', @$GLOBALS['_SERVER']['SCRIPT_NAME']); + if (strlen($this->Get('userinfo')) == 0) { + $this->Set('userinfo', UserRights::GetUserId()); + } + if (array_key_exists('_GET', $GLOBALS) && is_array($GLOBALS['_GET'])) { $this->Set('arguments_get', $GLOBALS['_GET']);