Skip to content

Commit 2626189

Browse files
authored
ENGCOM-4678: Fixed #22052 Customer account confirmation is overwritten by backend customer save #22147
2 parents 5c7ecce + 1b025ad commit 2626189

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

app/code/Magento/Customer/Model/Customer/DataProviderWithDefaultAddresses.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class DataProviderWithDefaultAddresses extends \Magento\Ui\DataProvider\Abstract
3939
private static $forbiddenCustomerFields = [
4040
'password_hash',
4141
'rp_token',
42-
'confirmation',
4342
];
4443

4544
/**

app/code/Magento/Customer/Test/Unit/Model/Customer/DataProviderWithDefaultAddressesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,6 @@ public function testGetData(): void
339339
'default_shipping' => 2,
340340
'password_hash' => 'password_hash',
341341
'rp_token' => 'rp_token',
342-
'confirmation' => 'confirmation',
343342
];
344343

345344
$address = $this->getMockBuilder(\Magento\Customer\Model\Address::class)

app/code/Magento/Customer/view/base/ui_component/customer_form.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@
7474
<visible>false</visible>
7575
</settings>
7676
</field>
77+
<field name="confirmation" formElement="input">
78+
<argument name="data" xsi:type="array">
79+
<item name="config" xsi:type="array">
80+
<item name="source" xsi:type="string">customer</item>
81+
</item>
82+
</argument>
83+
<settings>
84+
<dataType>text</dataType>
85+
<visible>false</visible>
86+
</settings>
87+
</field>
7788
<field name="created_in" formElement="input">
7889
<argument name="data" xsi:type="array">
7990
<item name="config" xsi:type="array">

0 commit comments

Comments
 (0)