fixed restart timesheet with tags with active record (#1622)

This commit is contained in:
Kevin Papst
2020-04-07 17:30:39 +02:00
committed by GitHub
parent 9e1e1a7a96
commit 5e7b0c7826
5 changed files with 39 additions and 20 deletions

View File

@@ -434,7 +434,7 @@ class TimesheetController extends BaseApiController
return $this->viewHandler->handle($view);
}
$this->repository->save($timesheet);
$this->service->updateTimesheet($timesheet);
$view = new View($timesheet, Response::HTTP_OK);
$view->getContext()->setGroups(['Default', 'Entity', 'Timesheet']);
@@ -759,7 +759,7 @@ class TimesheetController extends BaseApiController
$timesheet->setExported(!$timesheet->isExported());
$this->repository->save($timesheet);
$this->service->updateTimesheet($timesheet);
$view = new View($timesheet, 200);
$view->getContext()->setGroups(['Default', 'Entity', 'Timesheet']);
@@ -812,7 +812,7 @@ class TimesheetController extends BaseApiController
$meta->setValue($value);
$this->repository->save($timesheet);
$this->service->updateTimesheet($timesheet);
$view = new View($timesheet, 200);
$view->getContext()->setGroups(['Default', 'Entity', 'Timesheet']);