@@ -681,6 +681,10 @@ class Test extends Model {
return $this->getStatus() === self::STATUS_COMPLETED;
}
+ public function isDone(): bool {
+ return in_array($this->getStatus(), [self::STATUS_CANCELLED, self::STATUS_COMPLETED]);
+ }
+
/**
* @return bool
*/
@@ -367,7 +367,7 @@ foreach($projects as $project) {
?>
<strong><?=$dt_due->format("d/m/Y")?></strong>
<?php
- if($is_overdue) {
+ if($is_overdue && !$test->isDone()) {
?><br />
<small>
<?=htmlspecialchars(n__("%d day overdue", "%d days overdue", $days_overdue, $days_overdue))?>