From 0a05da4f332ae1f2514c2f795336881c69793e2b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 19 Jul 2011 20:20:18 +0000 Subject: [PATCH] Removed calls to deprecated Object#type. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6297 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/custom_fields/edit.rhtml | 2 +- app/views/custom_fields/new.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/custom_fields/edit.rhtml b/app/views/custom_fields/edit.rhtml index d8a94a955..2790c2c9e 100644 --- a/app/views/custom_fields/edit.rhtml +++ b/app/views/custom_fields/edit.rhtml @@ -1,5 +1,5 @@

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> - » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> + » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %> » <%=h @custom_field.name %>

<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "edit", :id => @custom_field } do |f| %> diff --git a/app/views/custom_fields/new.rhtml b/app/views/custom_fields/new.rhtml index e626ac4d6..85f6ef53e 100644 --- a/app/views/custom_fields/new.rhtml +++ b/app/views/custom_fields/new.rhtml @@ -1,5 +1,5 @@

<%= link_to l(:label_custom_field_plural), :controller => 'custom_fields', :action => 'index' %> - » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.type %> + » <%= link_to l(@custom_field.type_name), :controller => 'custom_fields', :action => 'index', :tab => @custom_field.class.name %> » <%= l(:label_custom_field_new) %>

<% labelled_tabular_form_for :custom_field, @custom_field, :url => { :action => "new" } do |f| %>