From a4231903bb3747e4eca495c267b02aeaa3d502c9 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Tue, 14 May 2024 16:14:12 -0600 Subject: [PATCH] Fixes issue saving password changes in profile Signed-off-by: Jon Stovell --- Sources/Profile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Profile.php b/Sources/Profile.php index 8eff1afa83..a582220e17 100644 --- a/Sources/Profile.php +++ b/Sources/Profile.php @@ -2179,9 +2179,6 @@ protected function prepareToSaveStandardFields(): void // Set the save variable. $this->new_data[$db_key] = $_POST[$key]; - // And update the user profile. - $this->data[$key] = $this->new_data[$key]; - // Are we logging it? if (!empty($field['log_change']) && isset($this->data[$key])) { $this->log_changes[] = [ @@ -2195,6 +2192,9 @@ protected function prepareToSaveStandardFields(): void ], ]; } + + // And update the user profile. + $this->data[$key] = $this->new_data[$db_key]; } // Logging group changes are a bit different...