Skip to content

Commit

Permalink
[apigee#415] Fix WSOD when saving credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
minnur committed Aug 3, 2020
1 parent 4e26460 commit 769cae6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Plugin/KeyInput/ApigeeAuthKeyInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ public function processSubmittedKeyValue(FormStateInterface $form_state) {
else {
$input_values['account_json_key'] = '';
// If password field is empty we just skip it and preserve initial password.
$values = $this->getFormDefaultValues($form_state);
if (empty($input_values['password']) && !empty($values['password'])) {
$input_values['password'] = $values['password'];
if (empty($input_values['password'])) {
$values = $this->getFormDefaultValues($form_state);
if (!empty($values['password'])) {
$input_values['password'] = $values['password'];
}
}
}

Expand Down

0 comments on commit 769cae6

Please sign in to comment.