From d2c701b8979a533c1d1d2f853f7bfd5d7b7d8f69 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 10 Feb 2023 18:20:57 +0100 Subject: [PATCH] many small fixes --- Admin/Install/Navigation.install.json | 2 +- Controller/ApiController.php | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 48208eb..f6a461b 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -100,7 +100,7 @@ "uri": "{/lang}/{/app}/purchase/analysis/supplier?{?}", "target": "self", "icon": null, - "order": 10, + "order": 15, "from": "SupplierManagement", "permission": { "permission": 2, "category": null, "element": null }, "parent": 1002106001, diff --git a/Controller/ApiController.php b/Controller/ApiController.php index d9b036c..58c44f4 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -716,6 +716,14 @@ final class ApiController extends Controller } $model = $data['response']; - $this->createModelRelation($request->header->account, $request->getData('id'), $model->getId(), SupplierMapper::class, 'notes', '', $request->getOrigin()); + $this->createModelRelation( + $request->header->account, + $request->getData('id'), + $model->getId(), + SupplierMapper::class, + 'notes', + '', + $request->getOrigin() + ); } }