Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

get:focus doesn't work in other than main-locale #2521

Open
delz-dev opened this issue Jun 9, 2020 · 0 comments
Open

get:focus doesn't work in other than main-locale #2521

delz-dev opened this issue Jun 9, 2020 · 0 comments

Comments

@delz-dev
Copy link

delz-dev commented Jun 9, 2020

Describe the bug
{{ image | get:focus | background_position }} doesn't output correct values in other than main-locale.

To Reproduce
Steps to reproduce the behavior:

  1. Define focus point on image in main-locale and other locale
  2. {{ image | get:focus | background_position }} in main locale: output correct
  3. {{ image | get:focus | background_position }} in other locale output is always: 50% 50%

-> workaround: {{ asset:image }}{{ focus_css }}{{ /asset:image }} always outputs the correct value in every locale …

Expected behavior
Should output the per locale defined focus of an asset: p.e. 57% 50%

Environment details (please complete the following information):

  • Statamic Version 2.11.20 upgraded
  • Web Server: Valet
  • PHP Version: 7.3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant