Skip to content
Snippets Groups Projects

Update Table.php

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -689,7 +689,9 @@ class Table extends ViewsTable {
@@ -689,7 +689,9 @@ class Table extends ViewsTable {
// Get field from the relationship_entities, otherwise from the entity.
// Get field from the relationship_entities, otherwise from the entity.
if ($field_handler->options['relationship'] && $field_handler->options['relationship'] != 'none') {
if ($field_handler->options['relationship'] && $field_handler->options['relationship'] != 'none') {
$relationship = $field_handler->options['relationship'];
$relationship = $field_handler->options['relationship'];
$source = $result_row->_relationship_entities[$relationship];
if (isset($result_row->_relationship_entities[$relationship])) {
 
$source = $result_row->_relationship_entities[$relationship];
 
}
}
}
else {
else {
$source = $result_row->_entity;
$source = $result_row->_entity;
Loading