allow to configure the amount of recent activity rows in an empty week (#3026)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user