Skip to content

Commit

Permalink
Fixed changing page template in Flex Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Mar 3, 2020
1 parent d285eda commit 993bc51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Fixed `Blueprint::extend()` and `Blueprint::embed()` not initializing dynamic properties
* Fixed fatal error on storing flex flash using new object without a key
* Regression: Fixed unchecking toggleable having no effect in Flex forms
* Fixed changing page template in Flex Pages

# v1.7.0-rc.6
## 02/11/2020
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Flex/Types/Pages/PageObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public function prepareStorage(): array
{
$meta = $this->getMetaData();
$oldLang = $meta['lang'] ?? '';
$newLang = $this->getProperty('lang');
$newLang = $this->getProperty('lang', '');

// Always clone the page to the new language.
if ($oldLang !== $newLang) {
Expand Down

0 comments on commit 993bc51

Please sign in to comment.