summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/js/system.js
diff options
context:
space:
mode:
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);