Commit da841106 authored by Jarka Kadlecová's avatar Jarka Kadlecová

Remove extra whitespace

parent 50c1a989
...@@ -161,7 +161,7 @@ class TodosFinder ...@@ -161,7 +161,7 @@ class TodosFinder
if group? if group?
groups = group.self_and_descendants groups = group.self_and_descendants
items = items.where( items = items.where(
'project_id IN (?) OR group_id IN (?)', 'project_id IN (?) OR group_id IN (?)',
Project.where(group: groups).select(:id), Project.where(group: groups).select(:id),
groups.select(:id) groups.select(:id)
) )
...@@ -178,7 +178,7 @@ class TodosFinder ...@@ -178,7 +178,7 @@ class TodosFinder
.joins('LEFT JOIN namespaces ON namespaces.id = todos.group_id') .joins('LEFT JOIN namespaces ON namespaces.id = todos.group_id')
.joins('LEFT JOIN projects ON projects.id = todos.project_id') .joins('LEFT JOIN projects ON projects.id = todos.project_id')
.where( .where(
'project_id IN (?) OR group_id IN (?)', 'project_id IN (?) OR group_id IN (?)',
projects.select(:id), projects.select(:id),
groups.select(:id) groups.select(:id)
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment