general fixes

This commit is contained in:
Dennis Eichhorn 2024-04-19 02:08:37 +00:00
parent b5c0e681b9
commit 49c59c492a
2 changed files with 4 additions and 2 deletions

View File

@ -157,6 +157,9 @@ final class BackendController extends Controller
->execute();
$view->setTemplate('/Modules/Helper/Theme/Backend/helper-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1002701001, $request, $response);
$view->data['unit'] = $this->app->unitId;
/** @var array<string, \Modules\Media\Models\Media> $tcoll */
$tcoll = [];
@ -222,7 +225,6 @@ final class BackendController extends Controller
}
$view->data['report'] = $report;
$view->data['unit'] = $this->app->unitId;
$view->data['tcoll'] = $tcoll;
$view->data['rcoll'] = $rcoll;
$view->data['lang'] = ISO639x1Enum::tryFromValue($request->getDataString('lang')) ?? $request->header->l11n->language;

View File

@ -57,7 +57,7 @@ echo $this->data['nav']->render(); ?>
<div class="col-xs-12 col-md-9 col-simple">
<div class="portlet col-simple">
<div class="portlet-body col-simple">
<iframe class="col-simple" data-form="iUiSettings" data-name="iframeHelper" id="iHelperFrame" src="<?= UriFactory::build('{/api}helper/report/export/?{?}&id=' . $template->id . '&csrf={$CSRF}'); ?>&u=<?= $this->data['unit']; ?>" allowfullscreen></iframe>
<iframe class="col-simple" data-form="iUiSettings" data-name="iframeHelper" id="iHelperFrame" src="<?= UriFactory::build('{/api}helper/report/export/?{?}&id=' . $template->id . '&csrf={$CSRF}'); ?>&u=<?= $this->data['unit']; ?>" allowfullscreen></iframe>
</div>
</div>
</div>