diff --git a/Setup/UpgradeData.php b/Setup/UpgradeData.php index 06c588d7..ae82e801 100644 --- a/Setup/UpgradeData.php +++ b/Setup/UpgradeData.php @@ -76,7 +76,9 @@ public function upgrade( */ private function updateProductSubscriptionOptionsTitle() { - $this->state->setAreaCode(Area::AREA_ADMINHTML); + if (empty($this->state->getAreaCode())) { + $this->state->setAreaCode(Area::AREA_ADMINHTML); + } $productSubscriptions = $this->productSubscriptionService->findAll(); foreach ($productSubscriptions as $productSubscription) { $this->applyTitleWithoutParentheses($productSubscription);