From 4a633c1743a09523d27ec8c5e4654d464f888235 Mon Sep 17 00:00:00 2001 From: Hagen Schink Date: Fri, 26 Jul 2013 09:55:36 +0200 Subject: [PATCH] Use controller instead of helper variable --- app/views/types/_form.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/types/_form.html.erb b/app/views/types/_form.html.erb index 59d42cc95e..ab89e9dcff 100644 --- a/app/views/types/_form.html.erb +++ b/app/views/types/_form.html.erb @@ -35,20 +35,20 @@ See doc/COPYRIGHT.rdoc for more details. <%= hidden_field_tag 'type[custom_field_ids][]', '' %> <% end %> -<% if @type.new_record? && @types.any? %> +<% if controller.type.new_record? && @types.any? %>

<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@types, :id, :name)) %>

<% end %> -<%= submit_tag l(@type.new_record? ? :button_create : :button_save) %> +<%= submit_tag l(controller.type.new_record? ? :button_create : :button_save) %>
<% if @projects.any? %>
<%= l(:label_project_plural) %> <%= project_nested_ul(@projects) do |p| - content_tag('label', check_box_tag('type[project_ids][]', p.id, @type.projects.include?(p), :id => nil) + ' ' + h(p)) + content_tag('label', check_box_tag('type[project_ids][]', p.id, controller.type.projects.include?(p), :id => nil) + ' ' + h(p)) end %> <%= hidden_field_tag('type[project_ids][]', '', :id => nil) %>

<%= check_all_links 'type_project_ids' %>