From 9f3914461723bd86d083e5ce269baeae297191dc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 19 Sep 2021 19:50:15 +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 8403e12..e837043 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(1004805001, $request, $response)); $item = ItemMapper::with('language', $response->getLanguage()) - ::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->addData('item', $item);