diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index cad6b38..21e10d4 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -59,5 +59,5 @@ "permission": { "permission": 2, "type": null, "element": null }, "parent": 1002106001, "children": [] - }, + } ] diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 214eefe..c341c47 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -54,10 +54,9 @@ final class BackendController extends Controller $view->setTemplate('/Modules/SupplierManagement/Theme/Backend/supplier-list'); $view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003202001, $request, $response)); - $supplier = SupplierMapper - ::with('notes', models: null) + $supplier = SupplierMapper::with('notes', models: null) ::with('contactElements', models: null) - ::with('type', 'backend_image', models: [Media::class]) // @todo: it would be nicer if I coult say files:type or files/type and remove the models parameter? + //::with('type', 'backend_image', models: [Media::class]) // @todo: it would be nicer if I coult say files:type or files/type and remove the models parameter? ::getAfterPivot(0, null, 25); $view->addData('supplier', $supplier);