diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2018-11-01 15:20:22 +0100 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2018-11-01 18:05:17 +0100 |
commit | fe0824d6a435cf18966322565e34f478c6193086 (patch) | |
tree | 5cd10dc5d4f8195154870e3269493f4f6c350a20 | |
parent | 359474a29ee925faf51322707f9c11272542cfd7 (diff) | |
download | gitlab-ce-fe0824d6a435cf18966322565e34f478c6193086.tar.gz |
Add render_if_exists to inject additional search field in EE
This allows EE code to reuse the search partial and append additional
query parameters to it, and have it preserved when searching.
-rw-r--r-- | app/views/shared/projects/_search_form.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/shared/projects/_search_form.html.haml b/app/views/shared/projects/_search_form.html.haml index b89194bcc67..3b5c13ed93a 100644 --- a/app/views/shared/projects/_search_form.html.haml +++ b/app/views/shared/projects/_search_form.html.haml @@ -21,3 +21,5 @@ - if params[:visibility_level].present? = hidden_field_tag :visibility_level, params[:visibility_level] + + = render_if_exists 'shared/projects/search_fields' |