summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/js/system.es6.js
diff options
context:
space:
mode:
authorAlex Pott <alex.a.pott@googlemail.com>2018-02-12 10:45:21 +0000
committerAlex Pott <alex.a.pott@googlemail.com>2018-02-12 10:45:21 +0000
commit3840ad24dc91f3eeb97f50bcf81a9d2e21682a1c (patch)
tree0fb880ecc1e4991641749928b252c921cfa95de2 /core/modules/system/js/system.es6.js
parente96ab4e1470296b852cc9d95865e9a67f7299736 (diff)
downloaddrupal-3840ad24dc91f3eeb97f50bcf81a9d2e21682a1c.tar.gz
drupal-3840ad24dc91f3eeb97f50bcf81a9d2e21682a1c.zip
Issue #2941106 by droplet, idebr: Site email address in the install profile form is no longer copied to the user email address
Diffstat (limited to 'core/modules/system/js/system.es6.js')
-rw-r--r--core/modules/system/js/system.es6.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/system/js/system.es6.js b/core/modules/system/js/system.es6.js
index 51007662e3c3..3f365d1fad07 100644
--- a/core/modules/system/js/system.es6.js
+++ b/core/modules/system/js/system.es6.js
@@ -23,7 +23,10 @@
attach(context) {
// List of fields IDs on which to bind the event listener.
// Create an array of IDs to use with jQuery.
- Object.keys(drupalSettings.copyFieldValue || {}).forEach(ids.push);
+ Object.keys(drupalSettings.copyFieldValue || {}).forEach((element) => {
+ ids.push(element);
+ });
+
if (ids.length) {
// Listen to value:copy events on all dependent fields.
// We have to use body and not document because of the way jQuery events