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

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

@delz-dev

Description

@delz-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions