hide not started projects in widget (#2805)

This commit is contained in:
Kevin Papst
2021-10-03 13:53:52 +02:00
committed by GitHub
parent 6857d92c4f
commit 6fcd50ecdf
2 changed files with 9 additions and 0 deletions

View File

@@ -474,6 +474,9 @@ class Project implements EntityWithMetaFields, EntityWithBudget
if ($this->getCustomer() !== null && !$this->getCustomer()->isVisible()) {
return false;
}
if ($this->getStart() !== null && $dateTime < $this->getStart()) {
return false;
}
if ($this->getEnd() !== null && $dateTime > $this->getEnd()) {
return false;
}