september update 1

This commit is contained in:
Dennis Eichhorn 2021-09-19 19:50:15 +02:00
parent a31b0dd6f4
commit 5d7ab934a3
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,16 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
* PHP Version 8.0
*
* @package Modules
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
use Modules\SupplierManagement\Controller\BackendController;
use Modules\SupplierManagement\Models\PermissionState;

View File

@ -109,8 +109,8 @@ final class BackendController extends Controller
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003202001, $request, $response));
$supplier = SupplierMapper
::with('files', limit: 5, orderBy: 'createdAt', sortOrder: 'ASC')
::with('notes', limit: 5, orderBy: 'id', sortOrder: 'ASC')
::with('files', limit: 5)::orderBy('createdAt', 'ASC')
::with('notes', limit: 5)::orderBy('id', 'ASC')
::get((int) $request->getData('id'));
$view->setData('supplier', $supplier);