Problem/Motivation

When installing a project from existing config, EU Cookie Compliance format for certain settings is not preserved (as it does not exist yet). Module must force dependency on the filter format.

Steps to reproduce

Install project from existing configuration
Cookie compliance message must use non-default filter format
Exported format is not being preserved

Proposed resolution

Simple configuration object does not have API to specify dependencies, but it can be done manually (and it works)

Remaining tasks

Provide a patch

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 3252865-2.patch1.86 KBtaran2l

Comments

Taran2L created an issue. See original summary.

taran2l’s picture

Status: Active » Needs review
StatusFileSize
new1.86 KB
svenryen’s picture

Thanks for the patch! We'll have a look.

karol haltenberger’s picture

I haven't tried an install from existing configuration, but this does not help with using the config file with an install profile.

With the dependency in place - either by applying the patch and exporting or entering the dependency manually into the config file as I've tried before - the config does not get imported during the install process.
Without the dependency the values get imported, but the text formats become plain text.

svenryen’s picture

Status: Needs review » Fixed

I added the patch, saved config, exported the config and tried to install drupal 9.3.x from config.

That worked for me. The config got imported during the install process.

Committed the patch, thanks for contributing!

  • svenryen committed fd9b719 on 8.x-1.x authored by Taran2L
    Issue #3252865 by Taran2L, svenryen, Karol Haltenberger: Config is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.