From c48724d095408e079b4a742847b94bc667dca3b2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Sep 2021 19:50:14 +0200 Subject: [PATCH] september update 1 --- Admin/Routes/Web/Backend.php | 14 +++++++++++++- Controller/BackendController.php | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 5d74a6a..f51bd0a 100755 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -1,4 +1,16 @@ -addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response)); $client = ClientMapper - ::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('client', $client);