PM-1185 Los triggers UserInfo y WSInformationUser despliegan el codigo del calendar y del campo replaced by en lugar de la descripcióCausa : Definida asi.
Solució Se agrego 2 campos mas que muestran su descripciion
This commit is contained in:
@@ -450,5 +450,14 @@ class CalendarDefinition extends BaseCalendarDefinition
|
||||
$oDataset->next();
|
||||
return $oDataset->getRow();
|
||||
}
|
||||
|
||||
public function calendarName ($calendarUid)
|
||||
{
|
||||
$tr = CalendarDefinitionPeer::retrieveByPK( $calendarUid );
|
||||
if ((is_object( $tr ) && get_class( $tr ) == 'CalendarDefinition')) {
|
||||
return $tr->getCalendarName();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ class Users extends BaseUsers
|
||||
//Calendar
|
||||
$calendar = new Calendar();
|
||||
$calendarInfo = $calendar->getCalendarFor( $userUid, $userUid, $userUid );
|
||||
$aFields["USR_CALENDAR"] = ($calendarInfo["CALENDAR_APPLIED"] != "DEFAULT") ? $calendarInfo["CALENDAR_UID"] : "";
|
||||
$aFields["USR_CALENDAR"] = ($calendarInfo["CALENDAR_APPLIED"] != "DEFAULT") ? $calendarInfo["CALENDAR_UID"] : "";
|
||||
|
||||
//Photo
|
||||
$pathPhoto = PATH_IMAGES_ENVIRONMENT_USERS . $userUid . ".gif";
|
||||
@@ -287,8 +287,15 @@ class Users extends BaseUsers
|
||||
$arrayData["birthday"] = $aFields["USR_BIRTHDAY"];
|
||||
$arrayData["position"] = $aFields["USR_POSITION"];
|
||||
$arrayData["replacedby"] = $aFields["USR_REPLACED_BY"];
|
||||
if(strlen($arrayData["replacedby"]!=0)){
|
||||
$oUser = UsersPeer::retrieveByPK( $arrayData["replacedby"] );
|
||||
$arrayData["replacedbyfullname"] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||
}
|
||||
$arrayData["duedate"] = $aFields["USR_DUE_DATE"];
|
||||
$arrayData["calendar"] = $aFields["USR_CALENDAR"];
|
||||
if(strlen($aFields["USR_CALENDAR"]!=0)){
|
||||
$arrayData["calendarname"] = $calendar->calendarName( $aFields["USR_CALENDAR"] );
|
||||
}
|
||||
$arrayData["status"] = $aFields["USR_STATUS"];
|
||||
$arrayData["department"] = $aFields["DEP_UID"];
|
||||
$arrayData["reportsto"] = $aFields["USR_REPORTS_TO"];
|
||||
|
||||
Reference in New Issue
Block a user