Skip to content

Default values for system config of type image/file is not working #10252

@AntonEvers

Description

@AntonEvers

This is a clone of #5085 that was closed because of a deleted repository.

Preconditions

  1. Install Magento from develop branch

Steps to reproduce

  1. Add config field with type image.
  2. Add default config value for that field.
  3. Save the config field without uploading a new file.

Expected result

  1. New record created in the database table core_config_data with default value.

Actual result

  1. New record created in the database table core_config_data with value NULL.

If you set a default value for a config field type image/file and you save it. It won't set the default value in the database. Instead it will save NULL and so overwrite the default config.

With this change the default value will be set as value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions