diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 40995c9..3e1c2bc 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -80,7 +80,7 @@ final class ApiController extends Controller } $employees = $this->createEmployeeFromAccountFromRequest($request); - $this->createModels($request->getHeader()->getAccount(), $employees, EmployeeMapper::class, 'employee'); + $this->createModels($request->getHeader()->getAccount(), $employees, EmployeeMapper::class, 'employee', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Employee', 'Employee(s) successfully created', $employees); } @@ -149,7 +149,7 @@ final class ApiController extends Controller } $employee = $this->createEmployeeNewFromRequest($request); - $this->createModel($request->getHeader()->getAccount(), $employee, EmployeeMapper::class, 'employee'); + $this->createModel($request->getHeader()->getAccount(), $employee, EmployeeMapper::class, 'employee', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'Employee', 'Employee successfully created', $employee); } @@ -219,7 +219,7 @@ final class ApiController extends Controller } $history = $this->createEmployeeHistoryFromRequest($request); - $this->createModel($request->getHeader()->getAccount(), $history, EmployeeHistoryMapper::class, 'history'); + $this->createModel($request->getHeader()->getAccount(), $history, EmployeeHistoryMapper::class, 'history', $request->getOrigin()); $this->fillJsonResponse($request, $response, NotificationLevel::OK, 'History', 'History successfully created', $history); } diff --git a/Theme/Backend/planning-dashboard.tpl.php b/Theme/Backend/planning-dashboard.tpl.php index faf5e82..6651cca 100644 --- a/Theme/Backend/planning-dashboard.tpl.php +++ b/Theme/Backend/planning-dashboard.tpl.php @@ -25,7 +25,7 @@
@@ -58,7 +58,7 @@ @@ -91,7 +91,7 @@