Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[Calculated value] Context for localized calculated field in object brick #5337
Comments
This comment has been minimized.
This comment has been minimized.
what would be your proposed solution? mayne we can add an additional value? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you have a localized calculated field in an object brick there is a conflict with the context. As https://pimcore.com/docs/6.x/Development_Documentation/Objects/Object_Classes/Data_Types/Calculated_Value_Type.html states about context:
For object bricks also field
position
gets set but to the same value asfieldName
:pimcore/models/DataObject/ClassDefinition/Data/Objectbricks.php
Lines 179 to 180 in 22882be
When you want to determine the language for the value generation of the calculated field, we need to set
position
to the language here. This currently does not work because the object brick fetches all descendant calculated value fields, not only children - bypassing the localized value field which would add the language as fieldposition
:pimcore/models/DataObject/ClassDefinition/Data/Objectbricks.php
Line 175 in 22882be