Skip to content

[4.x]: Unable to reset config value to craft default #4006

Open
@samhibberd

Description

@samhibberd

What happened?

After recently changing a setting in the commerce general settings in the control panel (we very rarely change settings in this way), I noticed a bunch of changes in the project.ymal, it saved all the values from my commerce config file to this file.

Subsequently removing / commenting out a config value from the commerce config file, like pdfPaperSize:

return [
    'pdfAllowRemoteImages' => true,
    // 'pdfPaperSize' => 'a4',
];

The config setting when accessed via php or twig, remains a4 rather than reverting to the default letter which I would expect to be the default behavior?

Resaving the commerce General Settings does not fix this.

Could this be related to any changes here - #3632

Craft CMS version

4.13.10

Craft Commerce version

4.7.2

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions