Merge pull request #1364 from marcoAntonioNina/master

Improvement the User edit
This commit is contained in:
julceslauhub
2013-03-04 04:57:55 -08:00

View File

@@ -439,8 +439,13 @@ switch ($_POST['action']) {
if ($aFields['USR_REPLACED_BY'] != '') {
$user = new Users();
$u = $user->load( $aFields['USR_REPLACED_BY'] );
$c = new Configurations();
$replaced_by = $c->usersNameFormat( $u['USR_USERNAME'], $u['USR_FIRSTNAME'], $u['USR_LASTNAME'] );
if ($u['USR_STATUS'] == 'CLOSED') {
$replaced_by = '';
$aFields['USR_REPLACED_BY'] = '';
} else {
$c = new Configurations();
$replaced_by = $c->usersNameFormat( $u['USR_USERNAME'], $u['USR_FIRSTNAME'], $u['USR_LASTNAME'] );
}
} else {
$replaced_by = '';
}