filtering on non-existant tags returns all tasks
Bug #602108 reported by
Bryce Harrington
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
Medium
|
Bryce Harrington |
Bug Description
Steps to reproduce:
0. Startup gtg
1. ./gtcli postpone @NonexistantTag 2011-07-05
This should be a no-op. The tag doesn't exist, so when gtcli calls timi.get_
Related branches
lp:~bryce/gtg/lp-602108
- Lionel Dricot: Pending (code) requested
-
Diff: 55 lines (+12/-6)2 files modifiedGTG/core/filteredtree.py (+8/-5)
gtcli (+4/-1)
Changed in gtg: | |
assignee: | Bryce Harrington (bryce) → nobody |
Changed in gtg: | |
milestone: | 0.3 → 0.2.9 |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've attached a branch with a change to the filter code that seems to fix it (at least for the test case in the description).
It seems that in __is_displayed(), if there is a tag filter using a tag that is not defined, it skips processing of it (which is correct) but the logic falls through to returning a True result by default. This branch changes this particular error case to default as False.