From 8224079a563c42cc20491dd7fc38ff05d3aba0bc Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 29 Mar 2022 22:30:02 +0200 Subject: [PATCH] limit bug --- Controller/BackendController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 906090a..efc8f7c 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -119,7 +119,7 @@ final class BackendController extends Controller ->with('contactElements') ->with('mainAddress') ->with('files')->limit(5, 'files')->sort('files/id', OrderType::DESC) - ->with('notes')->limit(5, 'files')->sort('notes/id', OrderType::DESC) + ->with('notes')->limit(5, 'notes')->sort('notes/id', OrderType::DESC) ->where('id', (int) $request->getData('id')) ->execute();