diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index da674985..d3ec69fa 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -178,9 +178,9 @@ module ProjectsHelper def new_issue_selector trackers = Tracker.find(:all, :order => 'position') - form_tag({:controller => 'projects', :action => 'add_issue', :id => @project}, :method => :get) + - select_tag('tracker_id', ' "if (this.value != '') {this.form.submit()}") + - end_form_tag + # can't use form tag inside helper + content_tag('form', + select_tag('tracker_id', ' "if (this.value != '') {this.form.submit()}"), + :action => url_for(:controller => 'projects', :action => 'add_issue', :id => @project), :method => 'get') end end diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml index 4f1bf45e..97212b37 100644 --- a/app/views/account/show.rhtml +++ b/app/views/account/show.rhtml @@ -24,5 +24,5 @@
-<%=l(:label_reported_issues)%>: <%= Issue.count(["author_id=?", @user.id]) %> +<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
\ No newline at end of file diff --git a/app/views/roles/report.rhtml b/app/views/roles/report.rhtml index 676e25f3..ca2f9d79 100644 --- a/app/views/roles/report.rhtml +++ b/app/views/roles/report.rhtml @@ -1,6 +1,6 @@<%= check_all_links 'permissions_form' %>
<%= submit_tag l(:button_save) %>
-<%= end_form_tag %> +<% end %>