Index: app/views/workflows/_form.html.erb =================================================================== --- app/views/workflows/_form.html.erb (revision 16111) +++ app/views/workflows/_form.html.erb (working copy) @@ -29,12 +29,17 @@ <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", :class => 'icon-only icon-checked') %> - - <%= old_status ? old_status.name : content_tag('em', l(:label_issue_new)) %> + <% if old_status %> + <% old_status_name = old_status.name %> + <%= old_status_name %> + <% else %> + <% old_status_name = l(:label_issue_new) %> + <%= content_tag('em', old_status_name) %> + <% end %> <% for new_status in @statuses -%> <% checked = workflows.detect {|w| w.old_status == old_status && w.new_status == new_status} %> - + <%= transition_tag workflows, old_status, new_status, name %> <% end -%> Index: app/views/workflows/permissions.html.erb =================================================================== --- app/views/workflows/permissions.html.erb (revision 16111) +++ app/views/workflows/permissions.html.erb (working copy) @@ -65,7 +65,7 @@ <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> <% for status in @statuses -%> - + <%= field_permission_tag(@permissions, status, field, @roles) %> <% unless status == @statuses.last %>»<% end %> @@ -85,7 +85,7 @@ <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> <% for status in @statuses -%> - + <%= field_permission_tag(@permissions, status, field, @roles) %> <% unless status == @statuses.last %>»<% end %>