commit bbb747b3f6993cdf84ab424e044731033730a5bb parent dc9364b0e725638c131aed440d6d4d1d30016d1a Author: Florian Dold <florian@dold.me> Date: Tue, 9 Dec 2025 12:57:22 +0100 -dce Diffstat:
| M | src/Form/TurnstileSettingsForm.php | | | 11 | ++--------- |
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/Form/TurnstileSettingsForm.php b/src/Form/TurnstileSettingsForm.php @@ -216,15 +216,9 @@ class TurnstileSettingsForm extends ConfigFormBase { public function submitForm(array &$form, FormStateInterface $form_state) { $config = $this->config('taler_turnstile.settings'); - // Test the access token and backend URL. $payment_backend_url = $form_state->getValue('payment_backend_url'); $access_token = $form_state->getValue('access_token'); - - // Get old and new content types. - $old_enabled_types = $config->get('enabled_content_types') ?: []; - $new_enabled_types = array_filter($form_state->getValue('enabled_content_types')); - $new_enabled_types = array_values($new_enabled_types); - + $new_enabled_types = array_values(array_filter($form_state->getValue('enabled_content_types'))); $grant_access_on_error = $form_state->getValue('grant_access_on_error'); // Save configuration. @@ -236,4 +230,4 @@ class TurnstileSettingsForm extends ConfigFormBase { parent::submitForm($form, $form_state); } -} -\ No newline at end of file +}