Skip to content

Commit dbcdd73

Browse files
authored
Merge pull request #179 from magefan/614-change-post-data-provider
change postDataProvider
2 parents 7b25edf + 2d245d6 commit dbcdd73

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Ui/DataProvider/Post/Form/PostDataProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,9 @@ public function getData()
103103
$collection = $post->getRelatedPosts();
104104
$items = [];
105105
foreach ($collection as $item) {
106-
$items[] = [
107-
'id' => $item->getId(),
108-
'title' => $item->getTitle(),
109-
];
106+
$itemData = $item->getData();
107+
$itemData['id'] = $item->getId();
108+
$items[] = $itemData;
110109
}
111110
$data['data']['links']['post'] = $items;
112111

0 commit comments

Comments
 (0)