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:19 +00:00
parent 3abfa71f7a
commit 6ef6341f4e
2 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ final class BackendController extends Controller
$mediaListView->setTemplate('/Modules/Media/Theme/Backend/Components/Media/list');
$view->data['medialist'] = $mediaListView;
$promotion = PromotionMapper::get()->where('id', (int) $request->getData('id'))->execute();
$promotion = PromotionMapper::get()->where('id', $request->getDataInt('id') ?? 0)->execute();
$view->data['promotion'] = $promotion;
return $view;
@ -129,7 +129,7 @@ final class BackendController extends Controller
$mediaListView->setTemplate('/Modules/Media/Theme/Backend/Components/Media/list');
$view->data['medialist'] = $mediaListView;
$promotion = PromotionMapper::get()->where('id', (int) $request->getData('id'))->execute();
$promotion = PromotionMapper::get()->where('id', $request->getDataInt('id') ?? 0)->execute();
$view->data['promotion'] = $promotion;
return $view;

View File

@ -74,7 +74,7 @@ echo $this->data['nav']->render(); ?>
<?php if ($promotion->id !== 0) : ?>
<div class="col-xs-12 col-md-6">
<div class="box wf-100">
<?= $this->getData('tasklist')->render($promotion->tasks); ?>
<?= $this->data['tasklist']->render($promotion->tasks); ?>
</div>
</div>
<?php endif; ?>
@ -83,11 +83,11 @@ echo $this->data['nav']->render(); ?>
<?php if ($promotion->id !== 0) : ?>
<div class="row">
<div class="col-xs-12 col-md-6">
<?= $this->getData('calendar')->render($promotion->getCalendar()); ?>
<?= $this->data['calendar']->render($promotion->getCalendar()); ?>
</div>
<div class="col-xs-12 col-md-6">
<?= $this->getData('medialist')->render($promotion->files); ?>
<?= $this->data['medialist']->render($promotion->files); ?>
</div>
</div>