Skip to content

Commit

Permalink
YDK-271-62322 Added missing block on submit button when form use not …
Browse files Browse the repository at this point in the history
…correct nemid login type
  • Loading branch information
andriyun committed Dec 1, 2020
1 parent cda5838 commit 8a2d43d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/os2forms_nemid/os2forms_nemid.module
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element;

/**
* Defines NemID webform type - Personal.
Expand Down Expand Up @@ -90,6 +91,9 @@ function os2forms_nemid_webform_submission_form_alter(array &$form, FormStateInt
'@logout' => $authProviderService->getLogoutUrl()
->toString(),
]));
foreach (Element::children($form['actions']) as $key) {
$form['actions'][$key]['#disabled'] = TRUE;
}
}
}
}
Expand Down

0 comments on commit 8a2d43d

Please sign in to comment.