Merge remote-tracking branch 'upstream/master' into speedy
This commit is contained in:
@@ -138,9 +138,9 @@ class Users extends BaseUsers
|
||||
$aIsoSubdivision = IsoSubdivision::findById( $aFields['USR_COUNTRY'], $aFields['USR_CITY'] );
|
||||
$aIsoLocation = IsoLocation::findById( $aFields['USR_COUNTRY'], $aFields['USR_CITY'], $aFields['USR_LOCATION'] );
|
||||
|
||||
$aFields['USR_COUNTRY_NAME'] = $aIsoCountry['IC_NAME'];
|
||||
$aFields['USR_CITY_NAME'] = $aIsoSubdivision['IS_NAME'];
|
||||
$aFields['USR_LOCATION_NAME'] = $aIsoLocation['IL_NAME'];
|
||||
$aFields["USR_COUNTRY_NAME"] = (!empty($aIsoCountry["IC_NAME"]))? $aIsoCountry["IC_NAME"] : "";
|
||||
$aFields["USR_CITY_NAME"] = (!empty($aIsoSubdivision["IS_NAME"]))? $aIsoSubdivision["IS_NAME"] : "";
|
||||
$aFields["USR_LOCATION_NAME"] = (!empty($aIsoLocation["IL_NAME"]))? $aIsoLocation["IL_NAME"] : "";
|
||||
|
||||
$result = $aFields;
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ foreach ($aTriggersList as $i => $v) {
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen( $aTriggersList[$i]['TRI_TITLE'] ) > 32) ? substr( $aTriggersList[$i]['TRI_TITLE'], 0, 32 ) . '...' : $aTriggersList[$i]['TRI_TITLE'];
|
||||
}
|
||||
|
||||
$aTriggersList = array_merge( Array ($aTriggersFileds, $aTriggersList ));
|
||||
$aTriggersList = array_merge( $aTriggersFileds, $aTriggersList );
|
||||
|
||||
$_DBArray['tasks'] = $aTasks;
|
||||
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
|
||||
|
||||
@@ -55,7 +55,7 @@ foreach ($aTriggersList as $i => $v) {
|
||||
$aTriggersList[$i]['TRI_TITLE'] = (strlen( $aTriggersList[$i]['TRI_TITLE'] ) > 32) ? substr( $aTriggersList[$i]['TRI_TITLE'], 0, 32 ) . '...' : $aTriggersList[$i]['TRI_TITLE'];
|
||||
}
|
||||
|
||||
$aTriggersList = array_merge( Array ($aTriggersFileds), $aTriggersList );
|
||||
$aTriggersList = array_merge( $aTriggersFileds, $aTriggersList );
|
||||
|
||||
$_DBArray['tasks'] = $aTasks;
|
||||
$_DBArray['TMP_TRIGGERS'] = $aTriggersList;
|
||||
|
||||
@@ -489,10 +489,6 @@ switch ($_POST['action']) {
|
||||
|
||||
$aFields['CASES_MENUSELECTED_NAME'] = $casesMenuSelected;
|
||||
|
||||
$aFields['USR_COUNTRY_NAME'] = (! empty( $aFields['USR_COUNTRY_NAME'] )) ? $aFields['USR_COUNTRY_NAME'] : '';
|
||||
$aFields['USR_CITY_NAME'] = (! empty( $aFields['USR_CITY_NAME'] )) ? $aFields['USR_CITY_NAME'] : '';
|
||||
$aFields['USR_LOCATION_NAME'] = (! empty( $aFields['USR_LOCATION_NAME'] )) ? $aFields['USR_LOCATION_NAME'] : '';
|
||||
|
||||
$result->success = true;
|
||||
$result->user = $aFields;
|
||||
|
||||
|
||||
@@ -82,13 +82,16 @@ switch ($_REQUEST['type']) {
|
||||
break;
|
||||
}
|
||||
|
||||
$users = Array ();
|
||||
$users['USR_UID'] = $_GET['uUID'];
|
||||
$users['USR_FIRSTNAME'] = $aRow['USR_FIRSTNAME'];
|
||||
$users['USR_LASTNAME'] = $aRow['USR_LASTNAME'];
|
||||
$users['USR_USERNAME'] = $aRow['USR_USERNAME'];
|
||||
$users['fullNameFormat'] = $Config['fullNameFormat'];
|
||||
$users['CURRENT_TAB'] = $ctab;
|
||||
$arrayAuthSources = $RBAC->getAllAuthSourcesByUser();
|
||||
|
||||
$users = array();
|
||||
$users["USR_UID"] = $_GET["uUID"];
|
||||
$users["USR_FIRSTNAME"] = $aRow["USR_FIRSTNAME"];
|
||||
$users["USR_LASTNAME"] = $aRow["USR_LASTNAME"];
|
||||
$users["USR_USERNAME"] = $aRow["USR_USERNAME"];
|
||||
$users["USR_AUTH_SOURCE"] = (isset($arrayAuthSources[$_GET["uUID"]]))? $arrayAuthSources[$_GET["uUID"]] : "ProcessMaker (MYSQL)";
|
||||
$users["fullNameFormat"] = $Config["fullNameFormat"];
|
||||
$users["CURRENT_TAB"] = $ctab;
|
||||
|
||||
$oHeadPublisher = & headPublisher::getSingleton();
|
||||
$oHeadPublisher->addExtJsScript( 'users/usersGroups', false ); //adding a javascript file .js
|
||||
|
||||
@@ -841,6 +841,7 @@ importProcessExistProcess = function()
|
||||
header : false,
|
||||
width : 460,
|
||||
height : 210,
|
||||
autoHeight : true,
|
||||
modal : true,
|
||||
autoScroll : false,
|
||||
maximizable : false,
|
||||
@@ -853,7 +854,7 @@ importProcessExistProcess = function()
|
||||
fileUpload : false,
|
||||
width : 440,
|
||||
frame : true,
|
||||
autoHeight : false,
|
||||
autoHeight : true,
|
||||
bodyStyle : 'padding: 10px 10px 0 10px;',
|
||||
labelWidth : 50,
|
||||
defaults : {
|
||||
|
||||
@@ -263,8 +263,8 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
//GROUPS DRAG AND DROP PANEL
|
||||
GroupsPanel = new Ext.Panel({
|
||||
title : _('ID_GROUPS'),
|
||||
GroupsPanel = new Ext.Panel({
|
||||
title: _("ID_GROUPS"),
|
||||
autoWidth : true,
|
||||
layout : 'hbox',
|
||||
defaults : { flex : 1 }, //auto stretch
|
||||
@@ -408,7 +408,15 @@ Ext.onReady(function(){
|
||||
{columnWidth:.6, padding: 3, layout: 'form', items: [userFields]},
|
||||
{columnWidth:.4, padding: 3, layout: 'form', items: [userPhoto, caseFields]}
|
||||
]
|
||||
}]
|
||||
}],
|
||||
buttons: [
|
||||
{
|
||||
text: _("ID_EDIT"),
|
||||
handler: function () {
|
||||
location.href = "usersEdit?USR_UID=" + USERS.USR_UID + "&USR_AUTH_SOURCE=" + USERS.USR_AUTH_SOURCE + "&MODE=edit";
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
SummaryPanel = new Ext.Panel({
|
||||
|
||||
Reference in New Issue
Block a user