diff options
Diffstat (limited to 'app/views/queries/new.html.erb')
-rw-r--r-- | app/views/queries/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/queries/new.html.erb b/app/views/queries/new.html.erb index a980d04ab..b5809fb88 100644 --- a/app/views/queries/new.html.erb +++ b/app/views/queries/new.html.erb @@ -1,6 +1,6 @@ <h2><%= l(:label_query_new) %></h2> -<% form_tag({:action => 'new', :project_id => @query.project}, :onsubmit => 'selectAllOptions("selected_columns");') do %> +<% form_tag(@project ? project_queries_path(:project_id => @project) : queries_path, :onsubmit => 'selectAllOptions("selected_columns");') do %> <%= render :partial => 'form', :locals => {:query => @query} %> <%= submit_tag l(:button_save) %> <% end %> |