eloquent-driver icon indicating copy to clipboard operation
eloquent-driver copied to clipboard

Asset meta data will not be updated when file is moved

Open leganz opened this issue 2 years ago • 2 comments

Issue

Moving an asset into different folder results in a duplicate entry + missing the meta data.

CleanShot 2022-10-07 at 15 23 31@2x

leganz avatar Oct 07 '22 13:10 leganz

We probably need to bring some of this method over to the Eloquent Asset class: https://github.com/statamic/cms/blob/c09bbd0f5eb5eec3615e81532da0e08b8aea0e9b/src/Assets/Asset.php#L655-L680

Or at least cache the old metaPath, call the parent method, then update the meta value based on the old one (and remove it).

Is this something you would be prepared to work on?

ryanmitchell avatar Oct 07 '22 14:10 ryanmitchell

The same issue also seems to occur for renaming btw

leganz avatar Oct 07 '22 14:10 leganz