diff app/views/queries/new.html.erb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents c6c2cbd0afee
children 433d4f72a19b
line wrap: on
line diff
--- a/app/views/queries/new.html.erb	Fri Feb 24 18:36:29 2012 +0000
+++ b/app/views/queries/new.html.erb	Fri Feb 24 19:09:32 2012 +0000
@@ -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 : queries_path, :onsubmit => 'selectAllOptions("selected_columns");') do %>
   <%= render :partial => 'form', :locals => {:query => @query} %>
   <%= submit_tag l(:button_save) %>
 <% end %>