Budget graph in project details (#3406)
* do not copy description if restarting via calendar * added support to display negative durations * fix charts for larger numbers
This commit is contained in:
@@ -158,7 +158,12 @@ final class ProjectDetailsModel
|
||||
*/
|
||||
public function setYears(array $years): void
|
||||
{
|
||||
$this->years = $years;
|
||||
$all = [];
|
||||
foreach ($years as $year) {
|
||||
$all[$year->getYear()] = $year;
|
||||
}
|
||||
ksort($all);
|
||||
$this->years = array_values($all);
|
||||
}
|
||||
|
||||
public function getBudgetStatisticModel(): ?BudgetStatisticModel
|
||||
|
||||
Reference in New Issue
Block a user