Describe the bug
After using the importer to import data into a collection, the folder.yaml file for that collection resets to the following
order: date
If the collection is ordered by by alpha or number then going into the cp and navigating to Collections > Products will result in an error "There was a problem fetching your data..." Visiting the front end will result in the following error.
InvalidEntryTypeException in Entry.php line 201:
Entry date not present in a date-based entry: [collections/products/test-product.html]
...
To Reproduce
Create a collection, any name, but I will be using "Products"
Optional, set collection to sort by alpha or number
Take note of the state of /site/content/collections/products/folder.yaml.
Describe the bug After using the importer to import data into a collection, the folder.yaml file for that collection resets to the following
If the collection is ordered by by alpha or number then going into the cp and navigating to Collections > Products will result in an error "There was a problem fetching your data..." Visiting the front end will result in the following error.
To Reproduce
order: date
as its entire contents.Expected behavior /site/content/collections/products/folder.yaml shouldn't get overwritten... and everything should work fine.
Environment details:
Additional context Problem has been observed across multiple sites in many versions of statamic v2.