Commit d6f7129b authored by recrit's avatar recrit Committed by tim.plunkett
Browse files

Issue #1591678 by recrit: Fixed Ensure that entity_type() isset on the results...

Issue #1591678 by recrit: Fixed Ensure that entity_type() isset on the results object in views_handler_field_field()::post_execute().
parent 10b83583
......@@ -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};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment