Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 0c4b077

Browse files
author
Jeroen
authored
Update attribute vat_id frontend_label
Value is `VAT number` while translation string is `VAT Number`.
1 parent 44a242e commit 0c4b077

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

app/code/Magento/Customer/Setup/UpgradeData.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface
155155
);
156156
}
157157

158+
if (version_compare($context->getVersion(), '2.0.12', '<')) {
159+
$this->upgradeVersionTwoZeroTwelve($customerSetup);
160+
}
161+
158162
$indexer = $this->indexerRegistry->get(Customer::CUSTOMER_GRID_INDEXER_ID);
159163
$indexer->reindexAll();
160164
$this->eavConfig->clear();
@@ -636,6 +640,15 @@ private function upgradeVersionTwoZeroSeven($customerSetup)
636640
);
637641
}
638642

643+
/**
644+
* @param CustomerSetup $customerSetup
645+
* @return void
646+
*/
647+
private function upgradeVersionTwoZeroTwelve($customerSetup)
648+
{
649+
$customerSetup->updateAttribute('customer_address', 'vat_id', 'frontend_label', 'VAT Number');
650+
}
651+
639652
/**
640653
* @param ModuleDataSetupInterface $setup
641654
* @return void

0 commit comments

Comments
 (0)