I am experiencing a problem using field values from entity reference fields. When used PHP throws errors like "EntityMetadataWrapperException: Unknown data property".

Comments

focal55 created an issue. See original summary.

focal55’s picture

After debugging I found that the logic for determining the target field name inside the referenced entity was not working. Attached is a patch that solves the problem.