mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-02-12 23:08:41 +00:00
Quick backup before crash
This commit is contained in:
parent
e1f765d8fe
commit
c786607bef
|
|
@ -179,8 +179,9 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$id = $request->getDataString('id') ?? '';
|
$id = $request->getDataString('id') ?? '';
|
||||||
|
|
||||||
|
/** @var \Model\Setting[] $settings */
|
||||||
$settings = SettingMapper::getAll()->where('module', $id)->execute();
|
$settings = SettingMapper::getAll()->where('module', $id)->execute();
|
||||||
if ($settings->id > 0) {
|
if (!empty($settings)) {
|
||||||
$view->data['settings'] = !\is_array($settings) ? [$settings] : $settings;
|
$view->data['settings'] = !\is_array($settings) ? [$settings] : $settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ final class TimerecordingController extends Controller
|
||||||
$this->app->accountManager->get($request->header->account),
|
$this->app->accountManager->get($request->header->account),
|
||||||
$this->app->dbPool,
|
$this->app->dbPool,
|
||||||
$this->app->unitId,
|
$this->app->unitId,
|
||||||
$this->app->appName
|
$this->app->appId
|
||||||
);
|
);
|
||||||
|
|
||||||
$navView = new NavigationView($this->app->l11nManager, $request, $response);
|
$navView = new NavigationView($this->app->l11nManager, $request, $response);
|
||||||
|
|
@ -76,7 +76,7 @@ final class TimerecordingController extends Controller
|
||||||
$this->app->accountManager->get($request->header->account),
|
$this->app->accountManager->get($request->header->account),
|
||||||
$this->app->dbPool,
|
$this->app->dbPool,
|
||||||
$this->app->unitId,
|
$this->app->unitId,
|
||||||
$this->app->appName
|
$this->app->appId
|
||||||
);
|
);
|
||||||
|
|
||||||
$nav = new \Modules\Navigation\Views\NavigationView($this->app->l11nManager, $request, $response);
|
$nav = new \Modules\Navigation\Views\NavigationView($this->app->l11nManager, $request, $response);
|
||||||
|
|
@ -138,7 +138,7 @@ final class TimerecordingController extends Controller
|
||||||
$this->app->accountManager->get($request->header->account),
|
$this->app->accountManager->get($request->header->account),
|
||||||
$this->app->dbPool,
|
$this->app->dbPool,
|
||||||
$this->app->unitId,
|
$this->app->unitId,
|
||||||
$this->app->appName
|
$this->app->appId
|
||||||
);
|
);
|
||||||
|
|
||||||
$navView = new NavigationView($this->app->l11nManager, $request, $response);
|
$navView = new NavigationView($this->app->l11nManager, $request, $response);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user