From 4e21817b0d7a91e634bdb2069850627c38fde053 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Thu, 9 Jun 2016 11:53:20 +0100 Subject: toaster: BuildTasksTable filters remove outcome NA option In the 'outcome' filter for tasks, remove the 'not applicable' option, since it should not be exposed to users. Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood --- lib/toaster/toastergui/buildtables.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/toaster/toastergui/buildtables.py b/lib/toaster/toastergui/buildtables.py index 4edd0e86c..f3d7236ae 100644 --- a/lib/toaster/toastergui/buildtables.py +++ b/lib/toaster/toastergui/buildtables.py @@ -389,6 +389,8 @@ class BuildTasksTable(BuildTablesMixin): title="Filter Task by 'Outcome'") for outcome_enum, title in Task.TASK_OUTCOME: + if outcome_enum is Task.OUTCOME_NA: + continue action = TableFilterActionToggle( title.replace(" ", "_").lower(), "%s Tasks" % title, -- cgit 1.2.3-korg