Skip to content
Snippets Groups Projects
Unverified Commit ce9d1740 authored by Michael Lee's avatar Michael Lee Committed by GitHub
Browse files

PHP 8.0 Research Gallery Fix

parent 185c4671
No related merge requests found
......@@ -570,15 +570,15 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $
*/
if (($form['#id'] == 'views-exposed-form-research-project-gallery-block-1')||($form['#id'] == 'views-exposed-form-research-project-gallery-page-1')) {
if(count($form['field_research_gallery_tags_target_id']['#options']) == 1) {
if(count((array)$form['field_research_gallery_tags_target_id']['#options']) == 1) {
$form['field_research_gallery_tags_target_id']['#access'] = FALSE;
}
if(count($form['field_research_gallery_tags_2_target_id']['#options']) == 1) {
if(count((array)$form['field_research_gallery_tags_2_target_id']['#options']) == 1) {
$form['field_research_gallery_tags_2_target_id']['#access'] = FALSE;
}
if(count($form['field_research_gallery_tags_3_target_id']['#options']) == 1) {
if(count((array)$form['field_research_gallery_tags_3_target_id']['#options']) == 1) {
$form['field_research_gallery_tags_3_target_id']['#access'] = FALSE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment