Skip to content

Commit

Permalink
Fix whitescreen error when selecting "skip" on edge connection settin…
Browse files Browse the repository at this point in the history
…gs in Kickstart. (#465)
  • Loading branch information
arlina-espinoza authored Aug 11, 2020
1 parent 6364c49 commit 99ead03
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 @@ -267,11 +267,13 @@ public function processSubmittedKeyValue(FormStateInterface $form_state) {
$input_values['client_id'] = '';
$input_values['client_secret'] = '';
}
// Remove unneeded values if on a Public or Private instance.
else {
// Remove unneeded values if on a Public or Private instance.
$input_values['account_json_key'] = '';
// If password field is empty we just skip it and preserve initial password.
if (empty($input_values['password'])) {

// If password field is empty we just skip it and preserve the initial
// password if there is one already.
if (empty($input_values['password']) && !empty($form_state->get('key_value')['current'])) {
$values = $this->getFormDefaultValues($form_state);
if (!empty($values['password'])) {
$input_values['password'] = $values['password'];
Expand Down

0 comments on commit 99ead03

Please sign in to comment.