Index: app/views/custom_fields/_form.rhtml =================================================================== --- app/views/custom_fields/_form.rhtml (revision 1715) +++ app/views/custom_fields/_form.rhtml (working copy) @@ -104,6 +104,7 @@ <% when "ProjectCustomField" %>

<%= f.check_box :is_required %>

+

<%= f.check_box :hide %>

<% when "TimeEntryCustomField" %>

<%= f.check_box :is_required %>

Index: app/views/custom_fields/list.rhtml =================================================================== --- app/views/custom_fields/list.rhtml (revision 1715) +++ app/views/custom_fields/list.rhtml (working copy) @@ -20,6 +20,9 @@ <%=l(:field_name)%> <%=l(:field_field_format)%> <%=l(:field_is_required)%> + <% if tab[:name] == 'ProjectCustomField' %> + <%=l(:field_hide)%> + <% end %> <% if tab[:name] == 'IssueCustomField' %> <%=l(:field_is_for_all)%> <%=l(:label_used_by)%> @@ -33,6 +36,9 @@ <%= link_to custom_field.name, :action => 'edit', :id => custom_field %> <%= l(CustomField::FIELD_FORMATS[custom_field.field_format][:name]) %> <%= image_tag 'true.png' if custom_field.is_required? %> + <% if tab[:name] == 'ProjectCustomField' %> + <%= image_tag 'true.png' if custom_field.hide? %> + <% end %> <% if tab[:name] == 'IssueCustomField' %> <%= image_tag 'true.png' if custom_field.is_for_all? %> <%= custom_field.projects.count.to_s + ' ' + lwr(:label_project, custom_field.projects.count) if custom_field.is_a? IssueCustomField and !custom_field.is_for_all? %> Index: app/views/projects/show.rhtml =================================================================== --- app/views/projects/show.rhtml (revision 1715) +++ app/views/projects/show.rhtml (working copy) @@ -11,7 +11,7 @@
  • <%=l(:field_parent)%>: <%= link_to h(@project.parent.name), :controller => 'projects', :action => 'show', :id => @project.parent %>
  • <% end %> <% @project.custom_values.each do |custom_value| %> - <% if !custom_value.value.empty? %> + <% if !custom_value.value.empty? && !custom_value.custom_field.hide? %>
  • <%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %>
  • <% end %> <% end %> Index: db/migrate/096_add_custom_field_hide.rb =================================================================== --- db/migrate/096_add_custom_field_hide.rb (revision 0) +++ db/migrate/096_add_custom_field_hide.rb (revision 0) @@ -0,0 +1,9 @@ +class AddCustomFieldHide < ActiveRecord::Migration + def self.up + add_column :custom_fields, :hide, :boolean, :null => false, :default => false + end + + def self.down + remove_column :custom_fields, :hide + end +end Index: lang/en.yml =================================================================== --- lang/en.yml (revision 1715) +++ lang/en.yml (working copy) @@ -183,6 +183,7 @@ field_default_value: Default value field_comments_sorting: Display comments field_parent_title: Parent page +field_hide: Hide from Overview setting_app_title: Application title setting_app_subtitle: Application subtitle