Skip to content
Snippets Groups Projects
Commit 69eaeefe authored by Michael Vanetta's avatar Michael Vanetta Committed by Tim Plunkett
Browse files

Issue #1591678 by recrit, damiankloip, tim.plunkett: Ensure that entity_type...

Issue #1591678 by recrit, damiankloip, tim.plunkett: Ensure that entity_type isset on the results object in views_handler_field_field::post_execute().
parent 8538ab18
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -639,7 +639,7 @@ function post_execute(&$values) {
$entities_by_type = array();
$revisions_by_type = array();
foreach ($values as $key => $object) {
if (isset($object->{$this->aliases['entity_type']}) && isset($object->{$this->field_alias}) && !isset($values[$key]->_field_data[$this->field_alias])) {
if (isset($this->aliases['entity_type']) && 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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment