I found couple of issues (1586366,1595458) which all seem to be connected with the contact_name field on CRM Contact entity.

I've defined new contact types which do not have contact_name field. This means it does not show label in entity reference field (for example in Participants field for activity types). This works only for Feeds imported activities as I can't add them directly using UI because of the error described here.

Moreover if I create a view of activities and I add a Participants field to it the only way I can display any data is the entity ID formatter. The rendered entity and label formatters show nothing. This I could fix by adding a relationship to CRM contact and adding fields with that relationship.

CRM Contact has crm_core_contact_label function which uses the contact_name field to render label for entity.
What if I don't want to have this field in my contact entity? Could rendering of referenced entity could be defined in a different manner?

Comments

Anonymous’s picture

Status: Active » Closed (works as designed)

Don't create new contact types unless they have a name. This is the only field requirement for CRM Core contact entities.

If you really need to use something else, create a preprocessor for the field and hide it from users.