* finish task #1728.

This commit is contained in:
wyd621
2013-11-02 00:24:27 +00:00
parent 60af664a7d
commit 6c0fd8e4ff
+8 -1
View File
@@ -609,7 +609,14 @@ class productModel extends model
foreach($stories as $key => $story)
{
$totalEstimate += $story->estimate;
$storyIdList[] = $story->id;
/* When the status is not closed or closedReason is done or postponed then add cases rate..*/
if(
$story->status != 'closed' or
($story->status == 'closed' and ($story->closedReason == 'done' or $story->closedReason == 'postponed'))
)
{
$storyIdList[] = $story->id;
}
}
$cases = $this->dao->select('DISTINCT story')->from(TABLE_CASE)->where('story')->in($storyIdList)->fetchAll();