← Back to team overview

gtg team mailing list archive

[Merge] lp:~shikhachowdhary28/gtg/Bug1258451 into lp:gtg

 

Shikha Chowdhary has proposed merging lp:~shikhachowdhary28/gtg/Bug1258451 into lp:gtg.

Requested reviews:
  Gtg developers (gtg)

For more details, see:
https://code.launchpad.net/~shikhachowdhary28/gtg/Bug1258451/+merge/206347

Bug #1258451  : The calculated "urgent" due date for a task, i.e. the quantity used for sorting the "Due" column, was wrong for a task with closed sub-tasks.
-- 
https://code.launchpad.net/~shikhachowdhary28/gtg/Bug1258451/+merge/206347
Your team Gtg developers is requested to review the proposed merge of lp:~shikhachowdhary28/gtg/Bug1258451 into lp:gtg.
=== modified file 'GTG/core/task.py'
--- GTG/core/task.py	2013-12-18 16:20:01 +0000
+++ GTG/core/task.py	2014-02-14 07:17:12 +0000
@@ -362,6 +362,8 @@
         """
         urg_date = self.due_date
         for sub in self.get_subtasks():
+            if sub.get_closed_date() != Date.no_date():
+                continue
             sub_urg_date = sub.get_urgent_date()
             if urg_date >= sub_urg_date:
                 urg_date = sub_urg_date


Follow ups