diff --git a/web/themes/asc_bootstrap/asc_bootstrap.theme b/web/themes/asc_bootstrap/asc_bootstrap.theme index 59a43b3000940cdb33ce390cb56f10a03f378252..30d395813ea33595c2552df62da4ecfd48de815f 100755 --- a/web/themes/asc_bootstrap/asc_bootstrap.theme +++ b/web/themes/asc_bootstrap/asc_bootstrap.theme @@ -329,6 +329,9 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $ //departments and centers if($form['#id'] == 'views-exposed-form-departments-centers-page-1') { + if(count($form['field_dc_type_target_id']['#options']) == 1) { + $form['field_dc_type_target_id']['#access'] = FALSE; + } if(count($form['field_dc_type_target_id']['#options']) > 1) { $form['filter_heading'] = array( '#markup' => '<h2 class="filter-heading">Filter</h2>',