allow to configure the amount of recent activity rows in an empty week (#3026)

This commit is contained in:
Kevin Papst
2021-12-16 16:58:10 +01:00
committed by GitHub
parent 3621b8c27c
commit 04fc954769
74 changed files with 270 additions and 656 deletions

View File

@@ -106,7 +106,8 @@ class QuickEntryController extends AbstractController
ksort($rows);
// attach recent activities
$timesheets = $this->repository->getRecentActivities($this->getUser(), null, 5);
$amount = $this->configuration->getQuickEntriesRecentAmount();
$timesheets = $this->repository->getRecentActivities($this->getUser(), null, $amount);
foreach ($timesheets as $timesheet) {
$id = $timesheet->getProject()->getId() . '_' . $timesheet->getActivity()->getId();
if (\array_key_exists($id, $rows)) {