diff --git a/modules/field/views_handler_field_field.inc b/modules/field/views_handler_field_field.inc index 8790baf05f04091d0bf0d25c9cd90e06ae2cf759..60208542b75b3f61aa28259ccaf0032bc1ac7b67 100644 --- a/modules/field/views_handler_field_field.inc +++ b/modules/field/views_handler_field_field.inc @@ -611,7 +611,7 @@ function post_execute(&$values) { $entities_by_type = array(); $revisions_by_type = array(); foreach ($values as $key => $object) { - if (isset($object->{$this->field_alias}) && !isset($values[$key]->_field_data[$this->field_alias])) { + if (isset($object->{$this->aliases['entity_type']}) && isset($object->{$this->field_alias}) && !isset($values[$key]->_field_data[$this->field_alias])) { $entity_type = $object->{$this->aliases['entity_type']}; if (empty($this->definition['is revision'])) { $entity_id = $object->{$this->field_alias};