Merge pull request #2437 from Jennydmz/master
BUG-15087 User Owner Field is Erased.
This commit is contained in:
@@ -213,6 +213,19 @@ if ($action == "uploadFileNewProcessExist") {
|
|||||||
|
|
||||||
reservedWordsSqlValidate( $oData );
|
reservedWordsSqlValidate( $oData );
|
||||||
|
|
||||||
|
//**cheking if the PRO_CREATE_USER exist**//
|
||||||
|
$usrCrtr = $oData->process['PRO_CREATE_USER'];
|
||||||
|
|
||||||
|
$exist = new Users();
|
||||||
|
if($exist->userExists($usrCrtr)){
|
||||||
|
$usrInfo = $exist->getAllInformation($usrCrtr);
|
||||||
|
if ($usrInfo['status'] == 'CLOSED'){
|
||||||
|
$oData->process['PRO_CREATE_USER'] = $_SESSION['USER_LOGGED'];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$oData->process['PRO_CREATE_USER'] = $_SESSION['USER_LOGGED'];
|
||||||
|
}
|
||||||
|
|
||||||
$Fields['PRO_FILENAME'] = $filename;
|
$Fields['PRO_FILENAME'] = $filename;
|
||||||
$sProUid = $oData->process['PRO_UID'];
|
$sProUid = $oData->process['PRO_UID'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user