[#4391] Add the Deliverable title as an issue column.

This commit is contained in:
Eric Davis
2010-08-12 10:36:01 -07:00
parent 8906639273
commit b83696f49a
3 changed files with 7 additions and 1 deletions
+4
View File
@@ -65,6 +65,10 @@ Dispatcher.to_prepare :redmine_contracts do
Project.send(:include, RedmineContracts::Patches::ProjectPatch)
require_dependency 'issue'
Issue.send(:include, RedmineContracts::Patches::IssuePatch)
unless Query.available_columns.collect(&:name).include?(:deliverable_title)
Query.add_available_column(QueryColumn.new(:deliverable_title, :sortable => "#{Deliverable.table_name}.title"))
end
end
require 'redmine_contracts/hooks/view_layouts_base_html_head_hook'