Project

General

Profile

Patch #20733 » fix_available_columns_order.diff

patch - Go MAEDA, 2015-09-13 08:59

View differences:

app/models/issue_query.rb (working copy)
263 263

  
264 264
    if User.current.allowed_to?(:view_time_entries, project, :global => true)
265 265
      index = nil
266
      @available_columns.each_with_index {|column, i| index = i if column.name == :estimated_hours}
266
      @available_columns.each_with_index {|column, i| index = i if column.name == :total_estimated_hours}
267 267
      index = (index ? index + 1 : -1)
268 268
      # insert the column after estimated_hours or at the end
269 269
      @available_columns.insert index, QueryColumn.new(:spent_hours,
(3-3/4)