From fe0824d6a435cf18966322565e34f478c6193086 Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Thu, 1 Nov 2018 15:20:22 +0100 Subject: [PATCH] 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. --- app/views/shared/projects/_search_form.html.haml | 2 ++ 1 file changed, 2 insertions(+) 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'