Project

General

Profile

Feature #1159 » enable_issue_filter_by_description.1159.diff

Henrique Bastos, 2008-05-08 06:14

View differences:

app/models/query.rb (cópia de trabalho)
107 107
    QueryColumn.new(:estimated_hours, :sortable => "#{Issue.table_name}.estimated_hours"),
108 108
    QueryColumn.new(:done_ratio, :sortable => "#{Issue.table_name}.done_ratio"),
109 109
    QueryColumn.new(:created_on, :sortable => "#{Issue.table_name}.created_on", :default_order => 'desc'),
110
    QueryColumn.new(:description, :sortable => "#{Issue.table_name}.description"),
110 111
  ]
111 112
  cattr_reader :available_columns
112 113
  
......
152 153
                           "updated_on" => { :type => :date_past, :order => 10 },
153 154
                           "start_date" => { :type => :date, :order => 11 },
154 155
                           "due_date" => { :type => :date, :order => 12 },
155
                           "done_ratio" =>  { :type => :integer, :order => 13 }}                          
156
                           "done_ratio" =>  { :type => :integer, :order => 13 },
157
                           "description" => { :type => :text, :order => 14}}                          
156 158
    
157 159
    user_values = []
158 160
    user_values << ["<< #{l(:label_me)} >>", "me"] if User.current.logged?
(1-1/5)