verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Image transform cannot be created after editing image. #254

Closed BrandonJamesBorders closed 9 months ago

BrandonJamesBorders commented 9 months ago

Describe the bug

If you edit an image from Vizy the transform will not save and you get the following error:

image

image

Steps to reproduce

In a vizy editor with the image button enabled with at least one transform available:

  1. Select an image and click insert.
  2. After inserting, click on the image and select "Image Editor"
  3. Make a change (or don't) and click "Save"
  4. Observe the above error message.

This is because the image transform action requires the values (ID and transform handle) as a body parameter and not a query string parameter, which I confirmed by editing the AssetsController.php file from getRequiredBodyParam to getParam.

Regrettably, I don't know VUE so I don't feel comfortable making a PR.

Craft CMS version

4.5.5

Plugin version

2.1.9

Multi-site?

NO

Additional context

No response

engram-design commented 9 months ago

Fixed for the next release. To get this early, run composer require verbb/vizy:"dev-craft-4 as 2.1.9"

engram-design commented 9 months ago

Fixed in 2.1.10

BrandonJamesBorders commented 9 months ago

Thanks @engram-design!