mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Fix how user data is retrieved for "Form Prefill" in the end-users portal
This commit is contained in:
@@ -152,7 +152,7 @@ class ObjectFormHandlerHelper
|
||||
// Preparing object
|
||||
$this->oContextManipulator->PrepareObject($aActionRules, $oObject);
|
||||
$aPrefillFormParam = array(
|
||||
'user' => $_SESSION["auth_user"],
|
||||
'user' => UserRights::GetUser(),
|
||||
'origin' => 'portal',
|
||||
);
|
||||
$oObject->PrefillForm('creation_from_0', $aPrefillFormParam);
|
||||
@@ -217,7 +217,7 @@ class ObjectFormHandlerHelper
|
||||
else
|
||||
{
|
||||
$aPrefillFormParam = array(
|
||||
'user' => $_SESSION["auth_user"],
|
||||
'user' => UserRights::GetUser(),
|
||||
'origin' => 'portal',
|
||||
'stimulus' => $this->oRequestManipulator->ReadParam('apply_stimulus', null)['code'],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user