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

FacetManipulationTrait::getFacetFieldDefinition returning wrong field name and by extension wrong field definition. #158

Open
Kirkdeam opened this issue Oct 18, 2022 · 0 comments

Comments

@Kirkdeam
Copy link

Trying to get list pages to work with a user profile index, and found this problem.
We have a field, in our index, that belongs to the user entity, and not the profile entity. The field has this property path revision_user:entity:field_current_location

$parts = explode(':', $property_path);
if (count($parts) > 1) {
  $field_name = $parts[0]; // Should be end($parts) (?)
}

The above code returns the "revision_user" as field name which is wrong, as the field_current_location is the right one.
I am not creating a PR with a fix, because I am not sure if a case, which current code will work, exists.

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

No branches or pull requests

1 participant