Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Asset focal point cannot be unset #12030

Closed
ccchapman opened this issue Sep 29, 2022 · 2 comments
Closed

[4.x]: Asset focal point cannot be unset #12030

ccchapman opened this issue Sep 29, 2022 · 2 comments
Assignees

Comments

@ccchapman
Copy link
Contributor

What happened?

Steps to reproduce:

  1. Edit entry (w/ asset field in field layout)
  2. Upload an asset
  3. Click the asset thumbnail (open preview modal)
  4. Hover over image, click "Enable focal point"
  5. Click "Disable focal point" [See relevant code]

Expected behaviour:

asset.hasFocalPoint is false

Actual behaviour:

asset.hasFocalPoint is true

Behing the scenes, the actions/assets/update-focal-position includes "focal":"0.5;0.5"

Craft CMS version

4

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed now for the next release (#12061).

@brandonkelly
Copy link
Member

Craft 4.2.6 is out with that fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants