Skip to content

Commit

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

Fixed issue:
 - MAGETWO-56945: Problem while upgrading to 2.1.0
  • Loading branch information
Oleksii Korshenko authored Aug 24, 2016
2 parents 403f363 + 37a9d0d commit d530867
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 d530867

Please sign in to comment.