Skip to content

Commit

Permalink
Fix CMS page error (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
broopdias authored Jul 2, 2024
1 parent df6b100 commit 1550ab3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Model/Cms/Page/DataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider

private $loadedData;

protected $collection;

public function __construct(
$name,
$primaryFieldName,
Expand All @@ -22,6 +24,7 @@ public function __construct(
array $data = []
) {
parent::__construct($name, $primaryFieldName, $requestFieldName, $meta, $data);
$this->collection = $collectionFactory->create();
}

/**
Expand Down

0 comments on commit 1550ab3

Please sign in to comment.