From cd21181338b530dd4465bb70bdc7020b10fd2fc3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 13 Feb 2022 14:38:04 +0100 Subject: [PATCH] load l11n --- Controller/ApiController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 13fd8ea..6f6d5e1 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -493,7 +493,11 @@ final class ApiController extends Controller } /** @var Localization $l11n */ - $l11n = AccountMapper::get()->where('id', $accountId)->execute()->l11n; + $l11n = AccountMapper::get() + ->with('l11n') + ->where('id', $accountId) + ->execute() + ->l11n; if ((bool) ($request->getData('load') ?? false)) { $locale = \explode('_', $request->getData('localization_load'));