When renaming a file, it works ok, corresponding entry in file_managed table changes.
When deleting a file, it just deletes a file from the filesystem, if it was attached to any nodes, you get broken links.
When renaming a directory, it just renames a directory on the filesystem, links in nodes get broken again.
It shouldn't be like this.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | fix-folder-rename-updates-file_managed.patch | 1.36 KB | edepuy |
Comments
Comment #2
zulljin commentedThanks for the reporting. So this is a problem. We must think about how to solve it.
Comment #3
edepuy commentedWe had the same problem. Table file_managed is not updated after a folder-rename.
The patch was simple, see attached.
Comment #4
zulljin commentedHey edepuy,
Thanks for the solution. A few edits and your patch ready for release.
Comment #6
zulljin commented