Skip to content

Commit

Permalink
Merge pull request #8226 from Sesquipedalian/3.0/save_profile_fields_key
Browse files Browse the repository at this point in the history
Fixes issue saving password changes in profile
  • Loading branch information
Sesquipedalian authored May 16, 2024
2 parents b24fff3 + a423190 commit 192ac59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand All @@ -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...
Expand Down

0 comments on commit 192ac59

Please sign in to comment.