SwitchForm compatibility with Drupal 10

Created on 24 January 2023, almost 2 years ago
Updated 6 June 2023, over 1 year ago

Drupal version 10.0.2

Expected Behavior

After enabled on certain forms, on domain change reload the page with correct settings.

Actual Behavior

No page reload, error logged.

Steps to reproduce

- fresh Drupal 10 install
- composer require 'drupal/domain:2.0.x-dev@dev'
- add domain records at admin/config/domain
- on admin/config/domain/config-ui i n"Enabled configuration forms" add (if not present) "/admin/appearance"
- go to /admin/appearance, change domain

AJAX throbber appears, but nothing happens.
Log shows an error:

Error: Call to undefined method Symfony\Component\HttpFoundation\RequestStack::getMasterRequest() รผzenet Drupal\domain_config_ui\Form\SwitchForm::switchCallback() fรผggvรฉnyben (/var/www/html/phgy2.tatrai.hu/web/modules/contrib/domain/domain_config_ui/src/Form/SwitchForm.php 214. sorรกban)

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

- Domain Config UI

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary eFeS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024