Skip to content

Commit

Permalink
MAGETWO-54786: [GITHUB] Fixes invalid json objects in the order email…
Browse files Browse the repository at this point in the history
… templates #5116
  • Loading branch information
irenelagno committed Aug 10, 2016
2 parents a452400 + c107794 commit 6c3a034
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 6c3a034

Please sign in to comment.