mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 00:36:01 +01:00
cleanup: rubocop: fix Layout/AlignArguments in IssueQuery available_columns variable
git-svn-id: http://svn.redmine.org/redmine/trunk@18931 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -39,7 +39,8 @@ class IssueQuery < Query
|
||||
QueryColumn.new(:start_date, :sortable => "#{Issue.table_name}.start_date", :groupable => true),
|
||||
QueryColumn.new(:due_date, :sortable => "#{Issue.table_name}.due_date", :groupable => true),
|
||||
QueryColumn.new(:estimated_hours, :sortable => "#{Issue.table_name}.estimated_hours", :totalable => true),
|
||||
QueryColumn.new(:total_estimated_hours,
|
||||
QueryColumn.new(
|
||||
:total_estimated_hours,
|
||||
:sortable => -> {
|
||||
"COALESCE((SELECT SUM(estimated_hours) FROM #{Issue.table_name} subtasks" +
|
||||
" WHERE #{Issue.visible_condition(User.current).gsub(/\bissues\b/, 'subtasks')} AND subtasks.root_id = #{Issue.table_name}.root_id AND subtasks.lft >= #{Issue.table_name}.lft AND subtasks.rgt <= #{Issue.table_name}.rgt), 0)"
|
||||
|
||||
Reference in New Issue
Block a user