From bab7e048c00e2ed00bb8dfcb07bdfaa6922d9710 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Tue, 3 Dec 2024 12:42:37 +0100 Subject: [PATCH] use non-deprecated API --- CHANGELOG.md | 6 ++++++ Service/ViewService.php | 2 +- composer.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b31726..1824545 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 4.3.0 + +Compatibility: requires minimum Kimai 2.25.0 + +- Use non-deprecated API to fetch timesheets + ## Version 4.2.0 Compatibility: requires minimum Kimai 2.25.0 diff --git a/Service/ViewService.php b/Service/ViewService.php index 2a30344..4ce4425 100644 --- a/Service/ViewService.php +++ b/Service/ViewService.php @@ -89,7 +89,7 @@ public function getTimeRecords(SharedProjectTimesheet $sharedProject, int $year, $query->setOrderBy('begin'); $query->setOrder(BaseQuery::ORDER_ASC); - $timesheets = $this->timesheetRepository->getTimesheetsForQuery($query); + $timesheets = $this->timesheetRepository->getTimesheetResult($query)->getResults(); // Filter time records by merge mode $timeRecords = []; diff --git a/composer.json b/composer.json index 889c979..5cacdf8 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Share timesheets and statistics via URLs", "homepage": "https://www.kimai.org/store/customer-portal.html", "type": "kimai-plugin", - "version": "4.2.0", + "version": "4.3.0", "keywords": [ "kimai", "kimai-plugin"