mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-01-11 17:18:40 +00:00
crash backup
This commit is contained in:
parent
3abfa71f7a
commit
6ef6341f4e
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user