Skip to content

Commit

Permalink
Merge pull request #267 from pvldigital/master
Browse files Browse the repository at this point in the history
Fix #250
  • Loading branch information
pvldigital authored Sep 30, 2019
2 parents c521d95 + aee228a commit 394d656
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased
### Fixed
- Fix #250. When rebuilding the project.yaml file, the fieldLayouts will now correctly be included

## 2.5.1 - 2019-09-24
### Fixed
- Fix #263 - correctly get the children blocks (GraphQL)
Expand Down
8 changes: 5 additions & 3 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ private function _setupProjectConfig()
{
$fieldLayout = $fieldsService->getLayoutById($blockType['fieldLayoutId']);
$fieldLayoutConfig = $fieldLayout->getConfig();
$blockType['fieldLayouts'] = [
$fieldLayout->uid => $fieldLayoutConfig,
];
if ($fieldLayoutConfig) {
$blockTypeData[$blockType['uid']]['fieldLayouts'] = [
$fieldLayout->uid => $fieldLayoutConfig,
];
}
}

unset($blockType['fieldLayoutId']);
Expand Down

0 comments on commit 394d656

Please sign in to comment.