diff options
-rw-r--r-- | app/views/issue_categories/edit.html.erb | 3 | ||||
-rw-r--r-- | app/views/issue_categories/new.html.erb | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/issue_categories/edit.html.erb b/app/views/issue_categories/edit.html.erb index 4f29ab8f8..c04aacb07 100644 --- a/app/views/issue_categories/edit.html.erb +++ b/app/views/issue_categories/edit.html.erb @@ -1,6 +1,7 @@ <h2><%=l(:label_issue_category)%></h2> -<% labelled_form_for :issue_category, @category, :url => issue_category_path(@category), :html => {:method => :put} do |f| %> +<%= labelled_form_for @category, :as => :issue_category, + :url => issue_category_path(@category), :html => {:method => :put} do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/issue_categories/new.html.erb b/app/views/issue_categories/new.html.erb index e63c09ea9..b8ecf8974 100644 --- a/app/views/issue_categories/new.html.erb +++ b/app/views/issue_categories/new.html.erb @@ -1,6 +1,7 @@ <h2><%=l(:label_issue_category_new)%></h2> -<% labelled_form_for :issue_category, @category, :url => project_issue_categories_path(@project) do |f| %> +<%= labelled_form_for @category, :as => :issue_category, + :url => project_issue_categories_path(@project) do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <% end %> |