minor change: null check

This commit is contained in:
naomi 2018-07-17 16:19:25 +02:00
parent 08fe6dc362
commit 48dabf1701

View File

@ -114,7 +114,7 @@ function opencase_entities_theme_suggestions_oc_activity(array $variables) {
}
function opencase_views_query_alter(Drupal\views\ViewExecutable $view, $query) {
if ($view->getBaseEntityType()->id() == 'oc_case') {
if ($view->getBaseEntityType() && $view->getBaseEntityType()->id() == 'oc_case') {
$query->addTag('oc_case_access');
}
}