Closed danielml01 closed 1 month ago
This only happens when using assets in the eloquent driver. I'll move the issue.
I've opened a PR with some changes that should resolve this - https://github.com/statamic/eloquent-driver/pull/356 - can you check it on your install?
Bug description
If I have a folder named "Pineapple" in an assets container and create a sibling folder named "Pineapple-Pizza" in the same container, Pineapple-Pizza will display in the Pineapple folder (control panel assets view.)
Likewise, if I have a folder name Draft and try to rename it to Draft_v1 I will get an error that a folder cannot be moved into its own subdirectory.
How to reproduce
Go to the control panel Assets view and create a folder named "Thing" Add an asset to it (so it doesn't disappear on page refresh) At the same top level, add a folder named "Thing-2" & add an asset to it Now click into the "Thing" folder. You will see the "Thing-2" folder nested inside. Now trying to rename the "Thing" folder to "Thing-1" You will get a server error.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response