diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-09 12:45:43 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-15 13:34:32 -0500 |
commit | f825b60b918a115a5a4a8d66abbbf35a10653b1a (patch) | |
tree | 480e13bf6a9f8f7c03467cbcfe3bc50cf9e046bc /app/views/layouts/_search.html.haml | |
parent | d6f822423d0f9c0d463cc25469833009815eae4a (diff) | |
download | gitlab-ce-f825b60b918a115a5a4a8d66abbbf35a10653b1a.tar.gz |
Change hidden input id to avoid duplicated IDs
The TODOs dashboard already had a #project_id input and it was causing a spec to fail
Diffstat (limited to 'app/views/layouts/_search.html.haml')
-rw-r--r-- | app/views/layouts/_search.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml index 843c833b4fe..58a3cdf955e 100644 --- a/app/views/layouts/_search.html.haml +++ b/app/views/layouts/_search.html.haml @@ -7,7 +7,7 @@ = search_field_tag "search", nil, placeholder: 'Search', class: "search-input", spellcheck: false, tabindex: "1", autocomplete: 'off' = hidden_field_tag :group_id, @group.try(:id) - = hidden_field_tag :project_id, @project && @project.persisted? ? @project.id : '' + = hidden_field_tag :project_id, @project && @project.persisted? ? @project.id : '', id: 'search_project_id' - if @project && @project.persisted? - if current_controller?(:issues) |