From: Eric Davis Date: Wed, 21 Oct 2009 22:35:03 +0000 (+0000) Subject: Fixed some merge bugs. #4077 X-Git-Tag: 0.9.0~289 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ff3d0fe4db014885de3497931b4b98fad0cafac1;p=redmine.git Fixed some merge bugs. #4077 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2952 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb index 2545dd893..13348546b 100644 --- a/app/helpers/custom_fields_helper.rb +++ b/app/helpers/custom_fields_helper.rb @@ -23,9 +23,9 @@ module CustomFieldsHelper {:name => 'ProjectCustomField', :partial => 'custom_fields/index', :label => :label_project_plural}, {:name => 'UserCustomField', :partial => 'custom_fields/index', :label => :label_user_plural}, {:name => 'GroupCustomField', :partial => 'custom_fields/index', :label => :label_group_plural}, - {:name => 'TimeEntryActivityCustomField', :label => TimeEntryActivity::OptionName}, - {:name => 'IssuePriorityCustomField', :label => IssuePriority::OptionName}, - {:name => 'DocumentCategoryCustomField', :label => DocumentCategory::OptionName} + {:name => 'TimeEntryActivityCustomField', :partial => 'custom_fields/index', :label => TimeEntryActivity::OptionName}, + {:name => 'IssuePriorityCustomField', :partial => 'custom_fields/index', :label => IssuePriority::OptionName}, + {:name => 'DocumentCategoryCustomField', :partial => 'custom_fields/index', :label => DocumentCategory::OptionName} ] end diff --git a/app/models/time_entry_activity_custom_field.rb b/app/models/time_entry_activity_custom_field.rb index 149bbb5c8..34f211aa0 100644 --- a/app/models/time_entry_activity_custom_field.rb +++ b/app/models/time_entry_activity_custom_field.rb @@ -17,7 +17,7 @@ class TimeEntryActivityCustomField < CustomField def type_name - :enumeration_time_entry_activities + :enumeration_activities end end diff --git a/app/views/enumerations/list.rhtml b/app/views/enumerations/list.rhtml index 817751ab2..13e1b6bb8 100644 --- a/app/views/enumerations/list.rhtml +++ b/app/views/enumerations/list.rhtml @@ -16,8 +16,8 @@ <% enumerations.each do |enumeration| %> <%= link_to h(enumeration), :action => 'edit', :id => enumeration %> - <%= image_tag('true.png') if enumeration.is_default? %> - <%= image_tag('true.png') if enumeration.active? %> + <%= image_tag('true.png') if enumeration.is_default? %> + <%= image_tag('true.png') if enumeration.active? %> <%= reorder_links('enumeration', {:action => 'update', :id => enumeration}) %> <%= link_to l(:button_delete), { :action => 'destroy', :id => enumeration }, diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 61f039b04..1ad81f079 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -159,6 +159,8 @@ table.attributes { width: 100% } table.attributes th { vertical-align: top; text-align: left; } table.attributes td { vertical-align: top; } +td.center {text-align:center;} + .highlight { background-color: #FCFD8D;} .highlight.token-1 { background-color: #faa;} .highlight.token-2 { background-color: #afa;} diff --git a/test/fixtures/custom_values.yml b/test/fixtures/custom_values.yml index 155191bec..7c4ce4794 100644 --- a/test/fixtures/custom_values.yml +++ b/test/fixtures/custom_values.yml @@ -84,7 +84,7 @@ custom_values_014: id: 14 value: "-7.6" custom_values_015: - customized_type: TimeEntryActivity + customized_type: Enumeration custom_field_id: 7 customized_id: 10 id: 15 @@ -94,4 +94,4 @@ custom_values_016: custom_field_id: 7 customized_id: 11 id: 16 - value: true + value: '1'