pimcore/studio-backend-bundle

[Asset Patch Update] Metadata is not updated after a successful request

Closed this issue · 3 comments

Description

Sending an patch request will result in a 200 Response, but after requesting the asset again, the asset data is not changed.

Reproduction

Example Payload:

{"data":[{"id":296,"metadata":[{"name":"author","data":"Peter Griffin"}]}]}

@vin0401 Could not reproduce the issue. I do see one other problem. If the metadata does not exist in the first place, nothing can be updated. So if the author is not already in the existing fields, nothing will be updated.
I will investigate this and make it possible to also update predefined metadata via the patch method

@vin0401 you can now also add entries in the patch, if they are predefined metadata.

A follow up is needed though for languages see #323

Thanks a lot. :) Now it works for me. :)