SettingsForm should not use overridden config

Created on 11 May 2023, over 1 year ago
Updated 19 July 2024, 5 months ago

Problem/Motivation

The form should not use overridden config, because this means the override will be saved to the database when submitting the form.

Steps to reproduce

Add this to settings.php

$config['simple_sitemap.settings']['base_url'] = 'https://' . $main_host;

Browse to /admin/config/search/simplesitemap/settings.
The overridden URL is displayed in the form field.

Proposed resolution

Use ConfigFactory::getEditable() to load the config.

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024