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'] );
|
$aIsoSubdivision = IsoSubdivision::findById( $aFields['USR_COUNTRY'], $aFields['USR_CITY'] );
|
||||||
$aIsoLocation = IsoLocation::findById( $aFields['USR_COUNTRY'], $aFields['USR_CITY'], $aFields['USR_LOCATION'] );
|
$aIsoLocation = IsoLocation::findById( $aFields['USR_COUNTRY'], $aFields['USR_CITY'], $aFields['USR_LOCATION'] );
|
||||||
|
|
||||||
$aFields['USR_COUNTRY_NAME'] = $aIsoCountry['IC_NAME'];
|
$aFields["USR_COUNTRY_NAME"] = (!empty($aIsoCountry["IC_NAME"]))? $aIsoCountry["IC_NAME"] : "";
|
||||||
$aFields['USR_CITY_NAME'] = $aIsoSubdivision['IS_NAME'];
|
$aFields["USR_CITY_NAME"] = (!empty($aIsoSubdivision["IS_NAME"]))? $aIsoSubdivision["IS_NAME"] : "";
|
||||||
$aFields['USR_LOCATION_NAME'] = $aIsoLocation['IL_NAME'];
|
$aFields["USR_LOCATION_NAME"] = (!empty($aIsoLocation["IL_NAME"]))? $aIsoLocation["IL_NAME"] : "";
|
||||||
|
|
||||||
$result = $aFields;
|
$result = $aFields;
|
||||||
|
|
||||||
|
|||||||
@@ -489,10 +489,6 @@ switch ($_POST['action']) {
|
|||||||
|
|
||||||
$aFields['CASES_MENUSELECTED_NAME'] = $casesMenuSelected;
|
$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->success = true;
|
||||||
$result->user = $aFields;
|
$result->user = $aFields;
|
||||||
|
|
||||||
|
|||||||
@@ -82,13 +82,16 @@ switch ($_REQUEST['type']) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$users = Array ();
|
$arrayAuthSources = $RBAC->getAllAuthSourcesByUser();
|
||||||
$users['USR_UID'] = $_GET['uUID'];
|
|
||||||
$users['USR_FIRSTNAME'] = $aRow['USR_FIRSTNAME'];
|
$users = array();
|
||||||
$users['USR_LASTNAME'] = $aRow['USR_LASTNAME'];
|
$users["USR_UID"] = $_GET["uUID"];
|
||||||
$users['USR_USERNAME'] = $aRow['USR_USERNAME'];
|
$users["USR_FIRSTNAME"] = $aRow["USR_FIRSTNAME"];
|
||||||
$users['fullNameFormat'] = $Config['fullNameFormat'];
|
$users["USR_LASTNAME"] = $aRow["USR_LASTNAME"];
|
||||||
$users['CURRENT_TAB'] = $ctab;
|
$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 = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addExtJsScript( 'users/usersGroups', false ); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript( 'users/usersGroups', false ); //adding a javascript file .js
|
||||||
|
|||||||
@@ -263,8 +263,8 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
//GROUPS DRAG AND DROP PANEL
|
//GROUPS DRAG AND DROP PANEL
|
||||||
GroupsPanel = new Ext.Panel({
|
GroupsPanel = new Ext.Panel({
|
||||||
title : _('ID_GROUPS'),
|
title: _("ID_GROUPS"),
|
||||||
autoWidth : true,
|
autoWidth : true,
|
||||||
layout : 'hbox',
|
layout : 'hbox',
|
||||||
defaults : { flex : 1 }, //auto stretch
|
defaults : { flex : 1 }, //auto stretch
|
||||||
@@ -408,7 +408,15 @@ Ext.onReady(function(){
|
|||||||
{columnWidth:.6, padding: 3, layout: 'form', items: [userFields]},
|
{columnWidth:.6, padding: 3, layout: 'form', items: [userFields]},
|
||||||
{columnWidth:.4, padding: 3, layout: 'form', items: [userPhoto, caseFields]}
|
{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({
|
SummaryPanel = new Ext.Panel({
|
||||||
|
|||||||
Reference in New Issue
Block a user