From 2821f7db219183eab6743569a59ee91e3e19f8a7 Mon Sep 17 00:00:00 2001
From: Fredrik Jonsson <frjo@xdeb.org>
Date: Fri, 8 May 2020 11:51:04 +0200
Subject: [PATCH] Only show metaterms with filter_on_dashboard set to true in
 submission table filters.

---
 hypha/apply/funds/tables.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hypha/apply/funds/tables.py b/hypha/apply/funds/tables.py
index 97a9837e2..3ae089117 100644
--- a/hypha/apply/funds/tables.py
+++ b/hypha/apply/funds/tables.py
@@ -188,6 +188,7 @@ def get_screening_statuses(request):
 
 def get_meta_terms(request):
     return MetaTerm.objects.filter(
+        filter_on_dashboard=True,
         id__in=ApplicationSubmission.objects.all().values('meta_terms__id').distinct('meta_terms__id'))
 
 
-- 
GitLab