From ba713713a72a4f9a9c3b0b0f92d1a3ccd047ae44 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 12 Apr 2019 11:24:08 +0200 Subject: [PATCH] Visual Console Refactor: fixed the service mode load Former-commit-id: 01eeb8db96555d5cb7ab1f821787b203d2ab843c --- .../include/rest-api/models/VisualConsole/Container.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/rest-api/models/VisualConsole/Container.php b/pandora_console/include/rest-api/models/VisualConsole/Container.php index 5262898d57..8006a274e5 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Container.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Container.php @@ -4,8 +4,6 @@ declare(strict_types=1); namespace Models\VisualConsole; use Models\Model; -// Enterprise item. It may not exist. -use Enterprise\Models\VisualConsole\Items\Service; /** * Model of a Visual Console. @@ -278,9 +276,9 @@ final class Container extends Model case ICON: return Items\Icon::class; - // Enterprise item. + // Enterprise item. It may not exist. case SERVICE: - return \class_exists('Service') ? Service::class : Item::class; + return \class_exists('\Enterprise\Models\VisualConsole\Items\Service') ? \Enterprise\Models\VisualConsole\Items\Service::class : Item::class; case GROUP_ITEM: return Items\Group::class;