Skip to content

Commit

Permalink
Merge branch 'ntr/5.7/fix-updating-without-sitemap' into '5.7'
Browse files Browse the repository at this point in the history
NTR - Fix update without custom sitemap configuration

See merge request shopware/5/product/shopware!422
  • Loading branch information
philipreinken committed Sep 23, 2020
2 parents f032216 + 6e4adac commit 14e2d28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _sql/migrations/common/SitemapConfigMigrationHelper.php
Expand Up @@ -57,6 +57,11 @@ public function migrate(): void
}

$customConfiguration = require $customConfigurationPath;

if (!isset($customConfiguration['sitemap'])) {
return;
}

$sitemapConfiguration = $customConfiguration['sitemap'];

if ($sitemapConfiguration['custom_urls']) {
Expand Down

0 comments on commit 14e2d28

Please sign in to comment.