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

Localized fields in object bricks with inheritance results in error #5083

Closed
deltatag opened this issue Oct 10, 2019 · 1 comment

Comments

@deltatag
Copy link
Contributor

commented Oct 10, 2019

Expected behaviour

Getting a localized field value for an object brick within an object that inherits from a parent object should give the localized value.

Actual behaviour

Getting a localized field from an object brick within an inherited object fails.

Steps to reproduce

  1. Child object inherit values form parent object of same object type.
  2. Parent object has object brick with localized field.
  3. Filling the localized field in parent object and saving is successful.
  4. Getting localized value from child object results in error.
$childObject->getBricks()->get('ObjectBrick')->getMyLocalizedField()

The error was pinned down to this line of code:

$brickContainerGetter = 'get' . ucfirst($context['fieldname']);

The context array is missing the value for key 'fieldname' and then could not build the getter method name.

@weisswurstkanone

This comment has been minimized.

Copy link
Contributor

commented Oct 14, 2019

Unable to reproduce

@deltatag deltatag closed this Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.