Skip to content

Commit 25f35ce

Browse files
committed
Updates settings forms
1 parent b0b898d commit 25f35ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/os2forms_digital_post/src/Form/SettingsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ public function buildForm(array $form, FormStateInterface $form_state): array {
252252
'#key_description' => FALSE,
253253
'#title' => $this->t('Key'),
254254
'#default_value' => $this->settings->getEditableValue([Settings::CERTIFICATE, Settings::PROVIDER_TYPE_KEY]),
255-
'#required' => TRUE,
256255
'#description' => $this->createDescription([Settings::CERTIFICATE, Settings::PROVIDER_TYPE_KEY]),
257256
'#states' => [
258257
'visible' => [':input[name="certificate[certificate_provider]"]' => ['value' => Settings::PROVIDER_TYPE_KEY]],
258+
'required' => [':input[name="certificate[certificate_provider]"]' => ['value' => Settings::PROVIDER_TYPE_KEY]],
259259
],
260260
];
261261

modules/os2forms_fasit/src/Form/SettingsForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ public function buildForm(array $form, FormStateInterface $form_state): array {
209209
'type' => 'os2web_key_certificate',
210210
],
211211
'#title' => $this->t('Key'),
212-
'#required' => TRUE,
213212
'#default_value' => $config->get(self::PROVIDER_TYPE_KEY),
214213
'#states' => [
215214
'visible' => [':input[name="certificate[certificate_provider]"]' => ['value' => self::PROVIDER_TYPE_KEY]],
215+
'required' => [':input[name="certificate[certificate_provider]"]' => ['value' => self::PROVIDER_TYPE_KEY]],
216216
],
217217
];
218218

0 commit comments

Comments
 (0)