Closed (duplicate)
Project:
Views Reference Filter
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 Apr 2024 at 20:04 UTC
Updated:
18 Sep 2026 at 15:48 UTC
Jump to comment: Most recent
Comments
Comment #3
kimlop commentedComment #4
kimlop commentedComment #5
maximkashubaThank you for the report and the MR @kimlop — much appreciated.
This issue is dupliate of #3514068 and #3545960
That whole hardcoded chain (nid/uid/tid/gid + commerce) is gone as of 2.0.0-beta6,
and it turns out it was the cause here too: the old elseif (mb_strpos($table_name, 'commerce_product') !== FALSE) branch
swallowed the attribute field tables, so the generic entity reference branch was never reached.
The hook now uses the Entity API (EntityTypeManager::getDefinitions()) to map every content
entity type's base/data table and ID key, resolves entity reference fields from the field storage config's target_type.
Verified on Drupal 10.3 with Commerce 3.3.6: with an attribute attached to a variation type.
Marking as Closed (duplicate).
Closing MR !23 as no longer applicable — please reopen if you still hit this on 2.0.x-dev.