Supportability: Add UserId in EventIssue if 'userinfo' field is empty

This commit is contained in:
Eric Espie
2021-09-23 08:25:32 +02:00
parent 50f860a0e8
commit b4278a6987

View File

@@ -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']);