FIX: Don't show category options for reports that can't be scoped to a category.

This commit is contained in:
Guo Xiang Tan
2017-04-13 17:10:55 +08:00
parent bda20cc44a
commit 3d76fb9c2c
6 changed files with 58 additions and 12 deletions

View File

@ -740,7 +740,7 @@ class User < ActiveRecord::Base
(tl_badge + other_badges).take(limit)
end
def self.count_by_signup_date(start_date, end_date, group_id=nil)
def self.count_by_signup_date(start_date, end_date, group_id = nil)
result = where('users.created_at >= ? AND users.created_at <= ?', start_date, end_date)
if group_id