fix timesheet collection fetch via API with end datetime set (#2552)

This commit is contained in:
Kevin Papst
2021-05-05 13:02:09 +02:00
committed by GitHub
parent 4fcd97b142
commit f10aad927f
3 changed files with 15 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ class TimesheetController extends BaseApiController
*/
public function cgetAction(ParamFetcherInterface $paramFetcher): Response
{
$query = new TimesheetQuery();
$query = new TimesheetQuery(false);
$query->setUser($this->getUser());
if ($this->isGranted('view_other_timesheet') && null !== ($user = $paramFetcher->get('user'))) {