We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e25ac5 commit 7b3ab27Copy full SHA for 7b3ab27
app/code/Magento/Customer/view/adminhtml/web/js/form/element/website.js
@@ -17,15 +17,17 @@ define([
17
*/
18
onUpdate: function (value) {
19
var groupIdFieldKey = 'group_id',
20
+ sendEmailStoreIdFieldKey = 'sendemail_store_id',
21
groupId = registry.get('index = ' + groupIdFieldKey),
22
+ storeId = registry.get('index = ' + sendEmailStoreIdFieldKey),
23
option = this.getOption(value);
24
25
if (groupId) {
26
groupId.value(option[groupIdFieldKey]);
27
}
28
29
if (option['default_store_view_id']) {
- document.getElementsByName('customer[sendemail_store_id]')[0].value = option['default_store_view_id'];
30
+ storeId.value(option['default_store_view_id']);
31
32
return this._super();
33
0 commit comments