From 6d9d19ce36cb680eabc76daf81294d58de0e4b29 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Wed, 27 Nov 2024 14:15:55 +0300 Subject: [PATCH] init fix --- kernel/EntityRelation.php | 2 +- .../console/controllers/AdminConsoleController.php | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/kernel/EntityRelation.php b/kernel/EntityRelation.php index 28a5c97..cd6139b 100644 --- a/kernel/EntityRelation.php +++ b/kernel/EntityRelation.php @@ -171,7 +171,7 @@ class EntityRelation { $moduleClass = $this->getAdditionalPropertyClassBySlug($slug); if ($moduleClass and method_exists($moduleClass, "saveInputs")) { - $moduleClass->saveInputs($entity, $model, $request, ); + $moduleClass->saveInputs($entity, $model, $request); } } diff --git a/kernel/console/controllers/AdminConsoleController.php b/kernel/console/controllers/AdminConsoleController.php index d3b7d90..b94b994 100644 --- a/kernel/console/controllers/AdminConsoleController.php +++ b/kernel/console/controllers/AdminConsoleController.php @@ -110,20 +110,8 @@ class AdminConsoleController extends ConsoleController $this->menuService->createItem([ "label" => "Посты", - "url" => "#", - "slug" => "post", - ]); - $this->menuService->createItem([ - "label" => "Список", "url" => "/admin/post", - "slug" => "post_list", - "parent_slug" => "post", - ]); - $this->menuService->createItem([ - "label" => "Создать", - "url" => "/admin/post/create", - "slug" => "post_create", - "parent_slug" => "post", + "slug" => "post", ]); $this->out->r("create item menu post", "green");