Merge pull request #961 from victorsl/BUG-8391
BUG 8391 "Request that an "Edit" button be added to the..." SOLVED
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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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