added code to remove exposedfilter when view empty
This commit is contained in:
parent
3f01a3ad41
commit
08fe6dc362
@ -149,3 +149,9 @@ function opencase_uninstall() {
|
||||
Drupal::configFactory()->getEditable($config)->delete();
|
||||
}
|
||||
}
|
||||
|
||||
function opencase_views_pre_render($view) {
|
||||
if (empty($view->result) && empty($view->exposed_input)) {
|
||||
$view->exposed_widgets = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user