Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AntonEvers opened this issue Jul 16, 2017 · 3 comments
Closed

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

AntonEvers opened this issue Jul 16, 2017 · 3 comments
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@AntonEvers
Copy link
Contributor

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.

@orlangur
Copy link
Contributor

Seems like this can be closed now. Thanks for the fix!

@AntonEvers
Copy link
Contributor Author

@orlangur you are right. Thanks for handling this ticket fast.

@magento-team magento-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development develop labels Jul 31, 2017
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-70764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

3 participants