Skip to content

Commit

Permalink
fix: set area code only if is not setted
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus-picoloto authored Aug 21, 2023
1 parent 9e894e6 commit 681d80a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Setup/UpgradeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 681d80a

Please sign in to comment.