From e53bd0f63c40e87d372eda325eb530e0802b0054 Mon Sep 17 00:00:00 2001 From: Alexander Kras'ko <0m3r.mail@gmail.com> Date: Mon, 12 Jul 2021 10:45:35 +0300 Subject: [PATCH] Fix 'Access to an undefined property' --- Model/Media/FileInfo.php | 5 +++++ Model/Module/DataProvider.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Model/Media/FileInfo.php b/Model/Media/FileInfo.php index e737da9..ba4c76c 100644 --- a/Model/Media/FileInfo.php +++ b/Model/Media/FileInfo.php @@ -10,6 +10,11 @@ class FileInfo implements \Swissup\Core\Api\Media\FileInfoInterface { + /** + * @var UrlInterface + */ + private $urlBuilder; + /** * Path in /pub/media directory * diff --git a/Model/Module/DataProvider.php b/Model/Module/DataProvider.php index 85c3d3f..250b89a 100644 --- a/Model/Module/DataProvider.php +++ b/Model/Module/DataProvider.php @@ -14,6 +14,11 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider */ protected $systemStore; + /** + * @var array|null + */ + private $loadedData; + /** * @param string $name * @param string $primaryFieldName