PM-1145, PM-1131

PM-1445, No se muestra el calendario que esta usando un usuario. PM-1131, actualizacion de etiquetas en trigger wizard

PM-1445, se agrego el parametro CALENDAR_NAME en usersAjax.php y se recibio el mismo en users.js
This commit is contained in:
marcelo.cuiza
2015-02-03 17:31:20 -04:00
parent fd4b865c97
commit 78c0d75522
3 changed files with 12 additions and 9 deletions

View File

@@ -2803,20 +2803,20 @@ function PMFAddCaseNote($caseUid, $processUid, $taskUid, $userUid, $note, $sendM
/**
*@method
*
* It adds an element to the asociative array of attached documents that will be sent by mail, if it exists a file with the same name, it wll return a generated name with an autoincrementable sequential number.
* Adds a filename and file path to an associative array of files which can be passed to the PMFSendMessage() to send emails with attachments. It renames files with the same filename so existing files will not be replaced in the array.
*
* @name PMFAddAttachmentToArray
* @label Add Element in Array
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#arrayDocumentAddElement.28.29
* @label Add File to Array
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFAddAttachmentToArray.28.29
*
* @param array | $arrayData | Array that will contain new data | Array value comes where will contain the new data.
* @param string(32) | $index | Name of the index | New index name
* @param string(32) | $value | Index value | New value will contain the index
* @param string | $suffix = " Copy({i})" | Is suffix | A string that is concatenated to index different
* @return array | $arrayData | Array with new data | The array will contain the new data
* @param array | $arrayData | Array of files | Associative array where the index of each element is its new filename and its value is the path to the file or its web address.
* @param string(32) | $index | Filename | New filename which will be added as the index in the array
* @param string(32) | $value | File location | The web address or path on the ProcessMaker server for the file
* @param string | $suffix = " Copy({i})" | Filename suffix | A suffix to add to the filename if the filename already exists in the array
* @return array | $arrayData | Array with new data | The array with the added file
*
*/
function PMFAddAttachmentToArray($arrayData, $index, $value, $suffix = " Copy({i})")
{
if (isset($suffix) && $suffix == "") {

View File

@@ -453,6 +453,7 @@ switch ($_POST['action']) {
$calendarInfo = $calendar->getCalendarFor($_POST['USR_UID'], $_POST['USR_UID'], $_POST['USR_UID']);
//If the function returns a DEFAULT calendar it means that this object doesn't have assigned any calendar
$aFields['USR_CALENDAR'] = $calendarInfo['CALENDAR_APPLIED'] != 'DEFAULT' ? $calendarInfo['CALENDAR_UID'] : "";
$aFields['CALENDAR_NAME'] = $calendarInfo['CALENDAR_NAME'];
#verifying if it has any preferences on the configurations table
G::loadClass('configuration');

View File

@@ -1313,6 +1313,8 @@ function loadUserData()
Ext.getCmp("USR_DUE_DATE2").setText(data.user.USR_DUE_DATE);
Ext.getCmp("USR_STATUS2").setText(_('ID_' + data.user.USR_STATUS));
Ext.getCmp("USR_ROLE2").setText(data.user.USR_ROLE_NAME);
Ext.getCmp("USR_CALENDAR2").setText(data.user.CALENDAR_NAME);
Ext.getCmp("PREF_DEFAULT_MAIN_MENU_OPTION2").setText(data.user.MENUSELECTED_NAME);
Ext.getCmp("PREF_DEFAULT_CASES_MENUSELECTED2").setText(data.user.CASES_MENUSELECTED_NAME);