Skip to content

Commit

Permalink
Merge pull request #231 from magento-fearless-kiwis/FearlessKiwis-MAG…
Browse files Browse the repository at this point in the history
…ETWO-55229-Problem-while-upgrading-210

[Fearless Kiwis] MAGETWO-55229: Problem while upgrading to 2.1.0
  • Loading branch information
Oleksii Korshenko authored Aug 9, 2016
2 parents bcdd65f + 80a7a65 commit c107794
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/code/Magento/Cms/Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,11 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
</div>
EOD;
$privacyAndCookiePolicyPage = $this->createPage()->load(self::PRIVACY_COOKIE_PAGE_ID);
$privacyAndCookiePolicyPage->setContent($newPageContent);
$privacyAndCookiePolicyPage->save();
$privacyAndCookiePolicyPageId = $privacyAndCookiePolicyPage->getId();
if ($privacyAndCookiePolicyPageId) {
$privacyAndCookiePolicyPage->setContent($newPageContent);
$privacyAndCookiePolicyPage->save();
}
}
$setup->endSetup();
}
Expand Down

0 comments on commit c107794

Please sign in to comment.