Skip to content

Commit

Permalink
Fix #3695 some more.
Browse files Browse the repository at this point in the history
  • Loading branch information
andris-sevcenko authored and angrybrad committed May 6, 2019
1 parent 8c10ce9 commit 76213b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
### Changed
- Craft now registers its project config event handlers before loading plugins. ([#3943](https://github.com/craftcms/cms/issues/3943))

### Fixed
- Fixed an error where rebuilding the project config would not typecast the `propagateEntries` and `enableVersioning` section settings correctly. ([#3695](https://github.com/craftcms/cms/issues/3695))

## 3.1.24 - 2019-04-23

### Added
Expand Down
3 changes: 3 additions & 0 deletions src/services/ProjectConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,9 @@ private function _getSectionData(): array
$uid = $section['uid'];
unset($section['id'], $section['structureMaxLevels'], $section['uid']);

$section['propagateEntries'] = (bool)$section['propagateEntries'];
$section['enableVersioning'] = (bool)$section['enableVersioning'];

$sectionData[$uid] = $section;
$sectionData[$uid]['entryTypes'] = [];
$sectionData[$uid]['siteSettings'] = [];
Expand Down

0 comments on commit 76213b1

Please sign in to comment.