From 1cbb244ce63afa583a0ee4ec56bcfacd252ac6a5 Mon Sep 17 00:00:00 2001
From: Geoffrey Spear <geoffspear@gmail.com>
Date: Tue, 7 Aug 2018 14:36:04 -0400
Subject: [PATCH] remove id attributes from copied template

A block of HTML is copied to make a template; some of the id elements were being
removed, but 2 were left on causing Lighthouse to complain about
duplicate ids.
---
 themes/bootstrap3/templates/search/advanced/build_page.phtml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/bootstrap3/templates/search/advanced/build_page.phtml b/themes/bootstrap3/templates/search/advanced/build_page.phtml
index c64aa98613d..191a02eb534 100644
--- a/themes/bootstrap3/templates/search/advanced/build_page.phtml
+++ b/themes/bootstrap3/templates/search/advanced/build_page.phtml
@@ -4,10 +4,12 @@ $(document).ready(function() {
   $('#groupPlaceHolder').removeClass('hidden');
   $('#new_search_template').addClass('hidden').detach().appendTo('[role="main"]');
   $('#new_search_template').find('.adv-search').removeAttr('id');
+  $('#new_search_template').find('.form-control').removeAttr('id');
   $('#new_search_template').find('input').removeAttr('value');
   $('#new_search_template').find('option').removeAttr('selected');
   $('#new_group_template').addClass('hidden').detach().appendTo('[role="main"]');
   $('#new_group_template').find('.adv-group').removeAttr('id');
+  $('#new_group_template').find('.form-control').removeAttr('id');
   $('#new_group_template .adv-search').remove();
   $('#advSearchForm .no-js').remove();
   // Build page
-- 
GitLab