bug fixes

This commit is contained in:
Dennis Eichhorn 2021-06-05 11:01:03 +02:00
parent 9376d770cc
commit 129154dffa
2 changed files with 3 additions and 4 deletions

View File

@ -59,5 +59,5 @@
"permission": { "permission": 2, "type": null, "element": null },
"parent": 1002106001,
"children": []
},
}
]

View File

@ -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);