Zookal / HarrisStreet-ImpEx

Magento n98-magerun module for importing and exporting configuration data. Import supports hierarchical folder structure and of course different environments.
62 stars 14 forks source link

YAML export should treat numeric values as strings and enclose in quotes #13

Open bluec opened 7 years ago

bluec commented 7 years ago

Using YAML export a string like '000000' is exported without quotes. This means upon import it is then treated as a numeric value and is imported as 0. You can see how this can cause problems.

Magento core_config_data treats everything like a string so it makes sense if the export / import does also.

Possible solution: in src/HarrisStreet/CoreConfigData/Exporter/Yaml.php remove the is_numeric test and treat everything like a string.