summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/js/system.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.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.js')
-rw-r--r--core/modules/system/js/system.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/modules/system/js/system.js b/core/modules/system/js/system.js
index 4bcfe348ed7f..f23a69a93714 100644
--- a/core/modules/system/js/system.js
+++ b/core/modules/system/js/system.js
@@ -10,7 +10,10 @@
Drupal.behaviors.copyFieldValue = {
attach: function attach(context) {
- Object.keys(drupalSettings.copyFieldValue || {}).forEach(ids.push);
+ Object.keys(drupalSettings.copyFieldValue || {}).forEach(function (element) {
+ ids.push(element);
+ });
+
if (ids.length) {
$('body').once('copy-field-values').on('value:copy', this.valueTargetCopyHandler);