From 7818f76e71e31379e0e23cf90bbfc05248b5b4e8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 17 Jul 2023 17:13:00 +0300 Subject: [PATCH] ref --- application/Espo/Tools/Layout/Service.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/application/Espo/Tools/Layout/Service.php b/application/Espo/Tools/Layout/Service.php index 7a288f081f..516fa82d53 100644 --- a/application/Espo/Tools/Layout/Service.php +++ b/application/Espo/Tools/Layout/Service.php @@ -71,9 +71,9 @@ class Service if ($setId) { $layout = $this->getRecordFromSet($scope, $name, $setId, true); - if ($layout && $layout->get('data') !== null) { + if ($layout && $layout->getData() !== null) { /** @var string $data */ - $data = $layout->get('data'); + $data = $layout->getData(); $result = Json::decode($data); } @@ -177,8 +177,7 @@ class Service $link = $item->name ?? null; } - $foreignEntityType = $this->metadata - ->get(['entityDefs', $scope, 'links', $link, 'entity']); + $foreignEntityType = $this->metadata->get(['entityDefs', $scope, 'links', $link, 'entity']); if ( $foreignEntityType && @@ -258,7 +257,7 @@ class Service $this->entityManager->saveEntity($layout); return Json::decode( - $layout->get('data') + $layout->getData() ); }