Skip to content

Commit

Permalink
use non-deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Dec 3, 2024
1 parent f1146f9 commit bab7e04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Service/ViewService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bab7e04

Please sign in to comment.