From eed28bc668504e382d6800ec9d76954dc6770ff7 Mon Sep 17 00:00:00 2001 From: Calvo Date: Thu, 22 Sep 2022 17:07:43 +0200 Subject: [PATCH] Fix user form reset if profile fails --- pandora_console/godmode/users/configure_user.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index 3ed36f8737..d98fc1d944 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -512,6 +512,14 @@ if ($create_user) { $result_profile = profile_create_user_profile($id, $profile2, $group2, false, $tags, $no_hierarchy); + if ($result_profile === false) { + $is_err = true; + $user_info = $values; + $password_new = ''; + $password_confirm = ''; + $new_user = true; + } + ui_print_result_message( $result_profile, __('Profile added successfully'),