diff --git a/app/models/report/group_by/singleton_value.rb b/app/models/report/group_by/singleton_value.rb index 61ac1f5103..197b9fcf80 100644 --- a/app/models/report/group_by/singleton_value.rb +++ b/app/models/report/group_by/singleton_value.rb @@ -1,5 +1,10 @@ class Report::GroupBy class SingletonValue < Base dont_display! + + def define_group(sql) + sql.select "1 as singleton_value" + sql.group_by "singleton_value" + end end end