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)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d10-regression-3336172-3.patch | 867 bytes | cbeier |
Issue fork domain-3336172
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
agentrickardComment #3
cbeier commentedPatch attached to fix regression bug.
Comment #4
hongqing commentedThanks for the patch. It works with D10.0.9.
Comment #5
thejimbirch commentedPatch applies cleanly and Switchform works.
I was able to change/add a domain's system.site.yml.
After the change was saved, I can now export the change to the config folder:
config/domain.config.site_name.system.site.yml
Comment #6
agentrickardThis needs to get rolled in to #3363211: Drupal 10.0.x Updates because it will not be committed without passing tests.
That said -- it looks like this solves the test problem I was having over there! Nice work!
Comment #10
shivam_tiwari commentedComment #12
agentrickardThis has been committed as part of the linked issue.