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 c462879f87
commit bbc4468cb1
10 changed files with 36 additions and 36 deletions

View File

@ -88,7 +88,7 @@ final class ApiController extends Controller
->with('reports/source')
->with('reports/source/sources')
->with('createdBy')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->execute();
$accountId = $request->header->account;
@ -151,7 +151,7 @@ final class ApiController extends Controller
private function setScriptResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void
{
/** @var array $tcoll */
$tcoll = $view->getData('tcoll') ?? [];
$tcoll = $view->data['tcoll'] ?? [];
switch ($request->getData('type')) {
case 'pdf':

View File

@ -152,7 +152,7 @@ final class BackendController extends Controller
->with('tags/title')
->with('source')
->with('source/sources')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->where('tags/title/language', $response->header->l11n->language)
->execute();

View File

@ -27,7 +27,7 @@ $accountDir = $account->id . ' ' . $account->login;
/** @var \Modules\Media\Models\Collection[] */
$collections = $this->data['collections'];
$mediaPath = \urldecode($this->getData('path') ?? '/');
$mediaPath = \urldecode($this->data['path'] ?? '/');
$previous = empty($templates) ? '{/base}/script/list' : '{/base}/script/list?{?}&offset=' . \reset($templates)->id . '&ptype=p';
$next = empty($templates) ? '{/base}/script/list' : 'script/list?{?}&offset=' . \end($templates)->id . '&ptype=n';

View File

@ -28,11 +28,11 @@ echo $this->data['nav']->render(); ?>
<div class="form-group">
<label for="iDescription"><?= $this->getHtml('Description'); ?></label>
<?= $this->getData('editor')->render('report-editor'); ?>
<?= $this->data['editor']->render('report-editor'); ?>
</div>
<div class="form-group">
<?= $this->getData('editor')->getData('text')->render('report-editor', 'description', 'helper-template-create'); ?>
<?= $this->data['editor']->data['text']->render('report-editor', 'description', 'helper-template-create'); ?>
</div>
<div class="form-group">

View File

@ -15,11 +15,11 @@ declare(strict_types=1);
/**
* @var \phpOMS\Views\View $this
*/
$tcoll = $this->getData('tcoll');
$rcoll = $this->getData('rcoll');
$cLang = $this->getData('lang');
$template = $this->getData('template');
$report = $this->getData('report');
$tcoll = $this->data['tcoll'];
$rcoll = $this->data['rcoll'];
$cLang = $this->data['lang'];
$template = $this->data['template'];
$report = $this->data['report'];
/** @noinspection PhpIncludeInspection */
$reportLanguage = include __DIR__ . '/../../../../' . \ltrim($tcoll['lang']->getPath(), '/');

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
require __DIR__ . '/Worker.php';
$lang = $this->getData('lang');
$lang = $this->data['lang'];
\date_default_timezone_set('Europe/London');

View File

@ -6,12 +6,12 @@ use phpOMS\Business\Finance\Depreciation;
/**
* @var \phpOMS\Views\View $this
*/
$tcoll = $this->getData('tcoll');
$rcoll = $this->getData('rcoll');
$cLang = $this->getData('lang');
$template = $this->getData('template');
$report = $this->getData('report');
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
$tcoll = $this->data['tcoll'];
$rcoll = $this->data['rcoll'];
$cLang = $this->data['lang'];
$template = $this->data['template'];
$report = $this->data['report'];
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
/** @noinspection PhpIncludeInspection */
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');

View File

@ -14,12 +14,12 @@ use PhpOffice\PhpSpreadsheet\Style\Fill;
/**
* @var \phpOMS\Views\View $this
*/
$tcoll = $this->getData('tcoll');
$rcoll = $this->getData('rcoll');
$cLang = $this->getData('lang');
$template = $this->getData('template');
$report = $this->getData('report');
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
$tcoll = $this->data['tcoll'];
$rcoll = $this->data['rcoll'];
$cLang = $this->data['lang'];
$template = $this->data['template'];
$report = $this->data['report'];
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
/** @noinspection PhpIncludeInspection */
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');

View File

@ -18,12 +18,12 @@ use phpOMS\Uri\UriFactory;
/**
* @var \phpOMS\Views\View $this
*/
$tcoll = $this->getData('tcoll');
$rcoll = $this->getData('rcoll');
$cLang = $this->getData('lang');
$template = $this->getData('template');
$report = $this->getData('report');
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
$tcoll = $this->data['tcoll'];
$rcoll = $this->data['rcoll'];
$cLang = $this->data['lang'];
$template = $this->data['template'];
$report = $this->data['report'];
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
/** @noinspection PhpIncludeInspection */
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');

View File

@ -8,12 +8,12 @@ use phpOMS\Business\Finance\Depreciation;
/**
* @var \phpOMS\Views\View $this
*/
$tcoll = $this->getData('tcoll');
$rcoll = $this->getData('rcoll');
$cLang = $this->getData('lang');
$template = $this->getData('template');
$report = $this->getData('report');
$basepath = \rtrim($this->getData('basepath') ?? '', '/');
$tcoll = $this->data['tcoll'];
$rcoll = $this->data['rcoll'];
$cLang = $this->data['lang'];
$template = $this->data['template'];
$report = $this->data['report'];
$basepath = \rtrim($this->data['basepath'] ?? '', '/');
/** @noinspection PhpIncludeInspection */
$reportLanguage = include $basepath . '/' . \ltrim($tcoll['lang']->getPath(), '/');