Skip to content

Commit

Permalink
ENGCOM-4678: Fixed #22052 Customer account confirmation is overwritte…
Browse files Browse the repository at this point in the history
…n by backend customer save #22147

 - Merge Pull Request #22147 from opencommerce/magento2:2.3-developPR22052
 - Merged commits:
   1. 887001d
   2. 4c04f55
   3. e5c1b94
  • Loading branch information
magento-engcom-team committed Apr 5, 2019
2 parents 62ae101 + e5c1b94 commit 8fe7ee8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class DataProviderWithDefaultAddresses extends \Magento\Ui\DataProvider\Abstract
private static $forbiddenCustomerFields = [
'password_hash',
'rp_token',
'confirmation',
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ public function testGetData(): void
'default_shipping' => 2,
'password_hash' => 'password_hash',
'rp_token' => 'rp_token',
'confirmation' => 'confirmation',
];

$address = $this->getMockBuilder(\Magento\Customer\Model\Address::class)
Expand Down
11 changes: 11 additions & 0 deletions app/code/Magento/Customer/view/base/ui_component/customer_form.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@
<visible>false</visible>
</settings>
</field>
<field name="confirmation" formElement="input">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="source" xsi:type="string">customer</item>
</item>
</argument>
<settings>
<dataType>text</dataType>
<visible>false</visible>
</settings>
</field>
<field name="created_in" formElement="input">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
Expand Down

0 comments on commit 8fe7ee8

Please sign in to comment.