This is a follow-up to #3549548-10: Views relationships to the same entity type are missing deleted check, allowing deleted content to show in views listings β .
One of our Views based on a custom entity referencing nodes via an Entity Reference Revision field is crashing as the table added in query alteration is unable to find a path back to the base table.
(Sorry these are rough, don't have time to confirm detailed steps.)
@amateescu and I spent some time debugging this and discovered it works correctly if we explicitly speficy the processed table's alias as the relationship id when adding the new data table. When feching the data table we also need to take check if there actually is a data table for the entity type and otherwise default to the base table.
This made sense to us because we need to add the "deleted" condition within the "scope" of the entity field's joins, and it's not possible for Views to simply figure that out on its own without us explicitly telling it that we do indeed want it to add on to a specific alias/relationship path.
Increase test coverage for this. Will do that in later issues.
None
None
None
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.