Skip to content

[5.x]: .env variables not correctly set in the project config. #4002

@bob-pixeldeluxe

Description

@bob-pixeldeluxe

What happened?

Description

When i try to set for example the to email or bcc email in a commerce email. It just saves the string that my .env variable is set to in the .yaml instead of the actual variable name.

Steps to reproduce

  1. Create an email in commerce.
  2. Set the bcc to an .env variable (it does recognise it)
  3. Check the project config or reload the page and the .env variable name will be replaced with the value.

Expected behaviour

Native craft .env variable use in the cms.

Actual behaviour

Not saving the variable name but the value so you cant set it to something else in different environments.

Craft CMS version

5.7.5

Craft Commerce version

5.3.1

PHP version

8.2

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions