HOR-110
This commit is contained in:
@@ -1126,12 +1126,15 @@ class Cases
|
||||
$aAux = $oAppDocument->load($aRow['APP_DOC_UID'], $aRow['DOC_VERSION']);
|
||||
$lastVersion = $oAppDocument->getLastAppDocVersion($aRow['APP_DOC_UID'], $sApplicationUID);
|
||||
|
||||
if ($aAux['USR_UID'] !== "-1") {
|
||||
try {
|
||||
$aAux1 = $oUser->load($aAux['USR_UID']);
|
||||
|
||||
$sUser = $conf->usersNameFormatBySetParameters($confEnvSetting["format"], $aAux1["USR_USERNAME"], $aAux1["USR_FIRSTNAME"], $aAux1["USR_LASTNAME"]);
|
||||
} catch (Exception $oException) {
|
||||
//$sUser = '(USER DELETED)';
|
||||
$sUser = '***';
|
||||
}
|
||||
} else {
|
||||
$sUser = '***';
|
||||
}
|
||||
$aFields = array(
|
||||
|
||||
@@ -406,13 +406,16 @@ class InputDocument
|
||||
while ($rsCriteria->next()) {
|
||||
$row = $rsCriteria->getRow();
|
||||
|
||||
$sUser = '***';
|
||||
if ($row["USR_UID"] !== '-1') {
|
||||
$arrayUserData = $user->load($row["USR_UID"]);
|
||||
|
||||
$sUser = $configuraction->usersNameFormatBySetParameters($confEnvSetting["format"], $arrayUserData["USR_USERNAME"], $arrayUserData["USR_FIRSTNAME"], $arrayUserData["USR_LASTNAME"]);
|
||||
}
|
||||
$arrayAppDocument = $appDocument->load($row["APP_DOC_UID"], $row["DOC_VERSION"]);
|
||||
|
||||
|
||||
$row["APP_DOC_FILENAME"] = $arrayAppDocument["APP_DOC_FILENAME"];
|
||||
$row["APP_DOC_CREATE_USER"] = $configuraction->usersNameFormatBySetParameters($confEnvSetting["format"], $arrayUserData["USR_USERNAME"], $arrayUserData["USR_FIRSTNAME"], $arrayUserData["USR_LASTNAME"]);
|
||||
$row["APP_DOC_CREATE_USER"] = $sUser;
|
||||
$row["APP_DOC_LINK"] = "cases/cases_ShowDocument?a=" . $row["APP_DOC_UID"] . "&v=" . $row["DOC_VERSION"];
|
||||
/*----------------------------------********---------------------------------*/
|
||||
//change donwload link - drive
|
||||
|
||||
Reference in New Issue
Block a user