views: convert mod dashboard + admin user edit page to simple form.
Fixes bug with the user level select dropdown on the mod dashboard page missing the builder level.
This commit is contained in:
@@ -4,7 +4,7 @@ module Moderator
|
||||
helper :post_flags, :post_appeals
|
||||
|
||||
def show
|
||||
@dashboard = Moderator::Dashboard::Report.new(params[:min_date] || 2.days.ago.to_date, params[:max_level] || 20)
|
||||
@dashboard = Moderator::Dashboard::Report.new(**search_params.to_h.symbolize_keys)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user