diff --git a/docroot/modules/humsci/hs_field_helpers/src/Plugin/views/query/Sql.php b/docroot/modules/humsci/hs_field_helpers/src/Plugin/views/query/Sql.php index f9d426af9f..d35d4f9fd0 100644 --- a/docroot/modules/humsci/hs_field_helpers/src/Plugin/views/query/Sql.php +++ b/docroot/modules/humsci/hs_field_helpers/src/Plugin/views/query/Sql.php @@ -104,6 +104,9 @@ protected function getDateFields() { foreach ($this->orderby as $order_item) { $field_alias = $order_item['field']; + if (!isset($this->fields[$field_alias])) { + continue; + } $field_data = $this->fields[$field_alias]; $table = $field_data['table'];