From 1b363e4b6d53941b73e949993970f481a178ed82 Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Thu, 22 Mar 2012 22:19:43 +0000 Subject: [PATCH] Hide overdue tag on issues that are now complete --- src/IDF/Views/Issue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 9fd7228..37a31e0 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -1054,7 +1054,8 @@ function IDF_Views_Issue_SummaryAndLabels($field, $issue, $extra='') $s = ''.__('On your watch list.').' '; } $out = ''; - if('' != $issue->due_dtime and (time() >= strtotime($issue->due_dtime))) { + if('' != $issue->due_dtime and (time() >= strtotime($issue->due_dtime)) + and in_array($issue->status, $issue->get_project()->getTagIdsByStatus('open'))) { $out = ' overdue'; } if (count($tags)) {