mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-11 12:28:41 +00:00
crash backup
This commit is contained in:
parent
c462879f87
commit
bbc4468cb1
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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(), '/');
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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(), '/');
|
||||
|
|
|
|||
|
|
@ -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(), '/');
|
||||
|
|
|
|||
|
|
@ -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(), '/');
|
||||
|
|
|
|||
|
|
@ -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(), '/');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user