crash backup
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2025-03-21 02:48:18 +00:00
parent 2a8aa4e961
commit 7af0be1979
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -63,7 +63,7 @@ echo $this->data['nav']->render();
<div class="portlet-body">
<div class="form-group">
<label for="iAccount"><?= $this->getHtml('Account', 'Admin'); ?></label>
<?= $this->getData('accSelector')->render('iAccount', 'accounts', true); ?>
<?= $this->data['accSelector']->render('iAccount', 'accounts', true); ?>
</div>
</div>
<div class="portlet-foot">