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
  • Loading branch information
sivaschenko authored Apr 29, 2019
2 parents 5c7ecce + 1b025ad commit 2626189
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 2626189

Please sign in to comment.