GTG

Comment 2 for bug 583021

Revision history for this message
Bryce Harrington (bryce) wrote : Re: All tasks count is wrong

The title bar updates the count by calling:

        count = self.req.get_main_n_tasks()

Whereas the tagtree.py code is using this call:

        return self.active_workview_filtered_tree.get_nodes_count()

However we can't use get_main_n_tasks() here for a few reasons. First, it shows the total number of tasks being *displayed* so as you click on things the number varies and doesn't always reflect the All tasks count. Second, it's a routine that uses browser functionality, whereas we want tagtree.py to work independently of the browser. And third, it doesn't fix the notags case.