From 1fe1b782f14c483ccb6cefc92c8350539df45f5d Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Thu, 30 Apr 2020 09:20:29 +0200 Subject: [PATCH] Fix for user filter in task activity page --- app/models/concerns/team_by_subject_model.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/concerns/team_by_subject_model.rb b/app/models/concerns/team_by_subject_model.rb index e1eb7c023..b002f6979 100644 --- a/app/models/concerns/team_by_subject_model.rb +++ b/app/models/concerns/team_by_subject_model.rb @@ -9,6 +9,7 @@ module TeamBySubjectModel valid_subjects = Extends::ACTIVITY_SUBJECT_CHILDREN # Check all activity subject valid_subjects.each do |subject, _children| + subject = subject.to_s.camelize.to_sym next unless subjects[subject] parent_array = [subject.to_s.underscore]