Skip to content

Commit 4da47e6

Browse files
MAGETWO-70460: Update attribute vat_id frontend_label to make it translatable #10140
2 parents bf70240 + 86feee6 commit 4da47e6

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
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 $customerSetup)
648+
{
649+
$customerSetup->updateAttribute('customer_address', 'vat_id', 'frontend_label', 'VAT Number');
650+
}
651+
639652
/**
640653
* @param ModuleDataSetupInterface $setup
641654
* @return void

app/code/Magento/Customer/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Customer" setup_version="2.0.11">
9+
<module name="Magento_Customer" setup_version="2.0.12">
1010
<sequence>
1111
<module name="Magento_Eav"/>
1212
<module name="Magento_Directory"/>

0 commit comments

Comments
 (0)