Merge pull request #1057 from Jennydmz/BUG-7987

BUG-7987 When importing a process which is created by a user that does not   exist, the 'Process Owner' column shows empty.
This commit is contained in:
julceslauhub
2012-12-05 12:20:50 -08:00

View File

@@ -155,8 +155,18 @@ if ($action == "uploadFileNewProcess") {
$result->ExistGroupsInDatabase = 0;
}
}
//!respect of the groups
//replacing a nonexistent user for the current user
$UsrUid = $oData->process['PRO_CREATE_USER'];
G::LoadClass( 'Users' );
$user = new Users();
if (!$user->userExists( $UsrUid ))
{
$oData->process['PRO_CREATE_USER'] = $_SESSION['USER_LOGGED'];
}
//!respect of the groups
if ($result->ExistProcessInDatabase == 0 && $result->ExistGroupsInDatabase == 0) {
if ($processFileType == "pm") {