From 7af0be1979e8580279ee023c895c52caca20a26f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 21 Mar 2025 02:48:18 +0000 Subject: [PATCH] crash backup --- Controller/BackendController.php | 6 +++--- Theme/Backend/staff-create.tpl.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 4727338..150ad2f 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -141,7 +141,7 @@ final class BackendController extends Controller ->with('companyHistory/position') ->with('educationHistory') ->with('workHistory') - ->where('id', (int) $request->getData('id')) + ->where('id', $request->getDataInt('id') ?? 0) ->sort('companyHistory/end', OrderType::DESC) ->sort('educationHistory/start', OrderType::DESC) ->sort('workHistory/start', OrderType::DESC) @@ -282,7 +282,7 @@ final class BackendController extends Controller $histories = EmployeeHistoryMapper::getAll() ->where('unit', $this->app->unitId) - ->where('department', (int) $request->getData('id')) + ->where('department', $request->getDataInt('id') ?? 0) ->where('end', null) ->executeGetArray(); @@ -329,7 +329,7 @@ final class BackendController extends Controller $histories = EmployeeHistoryMapper::getAll() ->where('unit', $this->app->unitId) - ->where('position', (int) $request->getData('id')) + ->where('position', $request->getDataInt('id') ?? 0) ->where('end', null) ->executeGetArray(); diff --git a/Theme/Backend/staff-create.tpl.php b/Theme/Backend/staff-create.tpl.php index 17fce75..67f2569 100755 --- a/Theme/Backend/staff-create.tpl.php +++ b/Theme/Backend/staff-create.tpl.php @@ -63,7 +63,7 @@ echo $this->data['nav']->render();
- getData('accSelector')->render('iAccount', 'accounts', true); ?> + data['accSelector']->render('iAccount', 'accounts', true); ?>