From 3864091f2dfc49eb45efb140b98ea079bccefa3b Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 16 May 2018 14:32:17 +1000 Subject: [PATCH] correct links to admins and moderators --- app/models/report.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/report.rb b/app/models/report.rb index c3ba6bd8a4a..a90ab37d500 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -408,10 +408,10 @@ class Report label = Proc.new { |key| I18n.t("reports.users_by_type.xaxis_labels.#{key}") } admins = User.real.admins.count - report.data << { key: "admin", x: label.call("admin"), y: admins } if admins > 0 + report.data << { key: "admins", x: label.call("admin"), y: admins } if admins > 0 moderators = User.real.moderators.count - report.data << { key: "moderator", x: label.call("moderator"), y: moderators } if moderators > 0 + report.data << { key: "moderators", x: label.call("moderator"), y: moderators } if moderators > 0 suspended = User.real.suspended.count report.data << { key: "suspended", x: label.call("suspended"), y: suspended } if suspended > 0