mirror of
https://github.com/Karaka-Management/oms-QualityManagement.git
synced 2026-02-13 03:58:40 +00:00
crash backup
This commit is contained in:
parent
0fee1bb77a
commit
9f6fa37ef7
|
|
@ -169,7 +169,7 @@ final class ApiController extends Controller
|
||||||
public function apiReportGet(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
|
public function apiReportGet(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
|
||||||
{
|
{
|
||||||
/** @var \Modules\QualityManagement\Models\Report $report */
|
/** @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);
|
$this->createStandardReturnResponse($request, $response, $report);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -191,7 +191,7 @@ final class ApiController extends Controller
|
||||||
/** @var \Modules\QualityManagement\Models\Report $old */
|
/** @var \Modules\QualityManagement\Models\Report $old */
|
||||||
$old = ReportMapper::get()
|
$old = ReportMapper::get()
|
||||||
->with('task')
|
->with('task')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
$new = $this->updateReportFromRequest($request, clone $old);
|
$new = $this->updateReportFromRequest($request, clone $old);
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ final class BackendController extends Controller
|
||||||
->with('task/attributes/type')
|
->with('task/attributes/type')
|
||||||
->with('task/attributes/value')
|
->with('task/attributes/value')
|
||||||
->with('task/for')
|
->with('task/for')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->where('task/tags/title/language', $request->header->l11n->language)
|
->where('task/tags/title/language', $request->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,8 +66,8 @@ echo $this->data['nav']->render(); ?>
|
||||||
<template id="contentTpl">
|
<template id="contentTpl">
|
||||||
<div class="task-content">
|
<div class="task-content">
|
||||||
<!-- @todo bind js after adding template -->
|
<!-- @todo bind js after adding template -->
|
||||||
<?= $this->getData('editor')->render('task-edit'); ?>
|
<?= $this->data['editor']->render('task-edit'); ?>
|
||||||
<?= $this->getData('editor')->getData('text')->render(
|
<?= $this->data['editor']->data['text']->render(
|
||||||
'task-edit',
|
'task-edit',
|
||||||
'plain',
|
'plain',
|
||||||
'taskEdit',
|
'taskEdit',
|
||||||
|
|
@ -183,8 +183,8 @@ echo $this->data['nav']->render(); ?>
|
||||||
<template id="taskElementContentTpl">
|
<template id="taskElementContentTpl">
|
||||||
<div class="taskElement-content">
|
<div class="taskElement-content">
|
||||||
<!-- @todo bind js after adding template -->
|
<!-- @todo bind js after adding template -->
|
||||||
<?= $this->getData('editor')->render('task-element-edit'); ?>
|
<?= $this->data['editor']->render('task-element-edit'); ?>
|
||||||
<?= $this->getData('editor')->getData('text')->render(
|
<?= $this->data['editor']->data['text']->render(
|
||||||
'task-element-edit',
|
'task-element-edit',
|
||||||
'plain',
|
'plain',
|
||||||
'taskElementEdit',
|
'taskElementEdit',
|
||||||
|
|
@ -340,11 +340,11 @@ echo $this->data['nav']->render(); ?>
|
||||||
<div class="portlet-head"><?= $this->getHtml('Message'); ?></div>
|
<div class="portlet-head"><?= $this->getHtml('Message'); ?></div>
|
||||||
<div class="portlet-body">
|
<div class="portlet-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?= $this->getData('editor')->render('task-editor'); ?>
|
<?= $this->data['editor']->render('task-editor'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<?= $this->getData('editor')->getData('text')->render(
|
<?= $this->data['editor']->data['text']->render(
|
||||||
'task-editor',
|
'task-editor',
|
||||||
'plain',
|
'plain',
|
||||||
'taskElementCreate',
|
'taskElementCreate',
|
||||||
|
|
@ -366,7 +366,7 @@ echo $this->data['nav']->render(); ?>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="iReceiver"><?= $this->getHtml('To'); ?></label>
|
<label for="iReceiver"><?= $this->getHtml('To'); ?></label>
|
||||||
<?= $this->getData('accGrpSelector')->render('iReceiver', 'to', true); ?>
|
<?= $this->data['accGrpSelector']->render('iReceiver', 'to', true); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group wf-100">
|
<div class="form-group wf-100">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user