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:20 +00:00
parent 0fee1bb77a
commit 9f6fa37ef7
3 changed files with 10 additions and 10 deletions

View File

@ -169,7 +169,7 @@ final class ApiController extends Controller
public function apiReportGet(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
{
/** @var \Modules\QualityManagement\Models\Report $report */
$report = ReportMapper::get()->where('id', (int) $request->getData('id'))->execute();
$report = ReportMapper::get()->where('id', $request->getDataInt('id') ?? 0)->execute();
$this->createStandardReturnResponse($request, $response, $report);
}
@ -191,7 +191,7 @@ final class ApiController extends Controller
/** @var \Modules\QualityManagement\Models\Report $old */
$old = ReportMapper::get()
->with('task')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->execute();
$new = $this->updateReportFromRequest($request, clone $old);

View File

@ -146,7 +146,7 @@ final class BackendController extends Controller
->with('task/attributes/type')
->with('task/attributes/value')
->with('task/for')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->where('task/tags/title/language', $request->header->l11n->language)
->execute();

View File

@ -66,8 +66,8 @@ echo $this->data['nav']->render(); ?>
<template id="contentTpl">
<div class="task-content">
<!-- @todo bind js after adding template -->
<?= $this->getData('editor')->render('task-edit'); ?>
<?= $this->getData('editor')->getData('text')->render(
<?= $this->data['editor']->render('task-edit'); ?>
<?= $this->data['editor']->data['text']->render(
'task-edit',
'plain',
'taskEdit',
@ -183,8 +183,8 @@ echo $this->data['nav']->render(); ?>
<template id="taskElementContentTpl">
<div class="taskElement-content">
<!-- @todo bind js after adding template -->
<?= $this->getData('editor')->render('task-element-edit'); ?>
<?= $this->getData('editor')->getData('text')->render(
<?= $this->data['editor']->render('task-element-edit'); ?>
<?= $this->data['editor']->data['text']->render(
'task-element-edit',
'plain',
'taskElementEdit',
@ -340,11 +340,11 @@ echo $this->data['nav']->render(); ?>
<div class="portlet-head"><?= $this->getHtml('Message'); ?></div>
<div class="portlet-body">
<div class="form-group">
<?= $this->getData('editor')->render('task-editor'); ?>
<?= $this->data['editor']->render('task-editor'); ?>
</div>
<div class="form-group">
<?= $this->getData('editor')->getData('text')->render(
<?= $this->data['editor']->data['text']->render(
'task-editor',
'plain',
'taskElementCreate',
@ -366,7 +366,7 @@ echo $this->data['nav']->render(); ?>
<div class="form-group">
<label for="iReceiver"><?= $this->getHtml('To'); ?></label>
<?= $this->getData('accGrpSelector')->render('iReceiver', 'to', true); ?>
<?= $this->data['accGrpSelector']->render('iReceiver', 'to', true); ?>
</div>
<div class="form-group wf-100">