From 597819c308f974522c72366030cb5d1e63b3978d Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 1 Jun 2010 12:19:24 +0000 Subject: [PATCH] 2010-06-01 Sergio Martin * godmode/users/configure_user.php: Fixed the edition of an user after create it. For bug: 3006988 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2828 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/godmode/users/configure_user.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 064e361f61..0dd0bb395f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-06-01 Sergio Martin + + * godmode/users/configure_user.php: Fixed the edition + of an user after create it. For bug: 3006988 + 2010-06-01 Sergio Martin * operation/agentes/estado_agente.php: Fixed the diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 29b466629f..4da6d1b1dc 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -21,7 +21,7 @@ check_login (); // This defines the working user. Beware with this, old code get confusses // and operates with current logged user (dangerous). -$id = get_parameter ('id', $config['id_user']); // ID given as parameter +$id = get_parameter ('id', get_parameter ('id_user', '')); // ID given as parameter $user_info = get_user_info ($id); if ($user_info["language"] == ""){ @@ -198,7 +198,7 @@ $table->style[0] = 'font-weight: bold; vertical-align: top'; $table->data[0][0] = __('User ID'); $table->data[0][1] = print_input_text_extended ('id_user', $id, '', '', 20, 60, - $view_mode, '', '', true); + !$new_user || $view_mode, '', '', true); $table->data[1][0] = __('Full (display) name'); $table->data[1][1] = print_input_text_extended ('fullname', $user_info['fullname'],