Skip to content

Commit 8a2d43d

Browse files
committed
YDK-271-62322 Added missing block on submit button when form use not correct nemid login type
1 parent cda5838 commit 8a2d43d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/os2forms_nemid/os2forms_nemid.module

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
use Drupal\Core\Form\FormStateInterface;
9+
use Drupal\Core\Render\Element;
910

1011
/**
1112
* Defines NemID webform type - Personal.
@@ -90,6 +91,9 @@ function os2forms_nemid_webform_submission_form_alter(array &$form, FormStateInt
9091
'@logout' => $authProviderService->getLogoutUrl()
9192
->toString(),
9293
]));
94+
foreach (Element::children($form['actions']) as $key) {
95+
$form['actions'][$key]['#disabled'] = TRUE;
96+
}
9397
}
9498
}
9599
}

0 commit comments

Comments
 (0)