HOR-3906
Do not upgrade usr_uid to guest when the process is updated. It will be modified from any other place (webentry UI dialog, endpoint)
This commit is contained in:
@@ -796,7 +796,7 @@ class WebEntryEvent
|
||||
* @return array Return data of the WebEntry-Event updated
|
||||
* @throws Exception
|
||||
*/
|
||||
public function update($webEntryEventUid, $userUidUpdater, array $arrayData)
|
||||
public function update($webEntryEventUid, $userUidUpdater, array $arrayData, $updateUser = true)
|
||||
{
|
||||
try {
|
||||
//Verify data
|
||||
@@ -826,7 +826,9 @@ class WebEntryEvent
|
||||
//Define if the webEntry need to use the guest user
|
||||
$weUserUid = isset($arrayData["USR_UID"]) ? $arrayData["USR_UID"] : '';
|
||||
$weAuthentication = isset($arrayData["WE_AUTHENTICATION"]) ? $arrayData["WE_AUTHENTICATION"] : '';
|
||||
$arrayData["USR_UID"] = $this->getWebEntryUser($weAuthentication, $weUserUid);
|
||||
if ($updateUser) {
|
||||
$arrayData["USR_UID"] = $this->getWebEntryUser($weAuthentication, $weUserUid);
|
||||
}
|
||||
//Verify data with the required fields
|
||||
$this->throwExceptionIfDataIsInvalid($webEntryEventUid, $arrayWebEntryEventData["PRJ_UID"], $arrayData);
|
||||
|
||||
|
||||
@@ -2086,7 +2086,8 @@ class BpmnWorkflow extends Project\Bpmn
|
||||
$arrayResult = $webEntryEvent->update(
|
||||
$arrayWebEntryEventData['WEE_UID'],
|
||||
$bpmnProject->getPrjAuthor(),
|
||||
(!is_null($arrayData))? $arrayData : $arrayWebEntryEventData
|
||||
(!is_null($arrayData))? $arrayData : $arrayWebEntryEventData,
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user