Index: includes/content.node_form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/includes/Attic/content.node_form.inc,v
retrieving revision 1.7.2.19.2.4
diff -u -r1.7.2.19.2.4 content.node_form.inc
--- includes/content.node_form.inc	5 Oct 2009 00:40:40 -0000	1.7.2.19.2.4
+++ includes/content.node_form.inc	17 Oct 2009 11:39:52 -0000
@@ -502,8 +502,14 @@
   // form elements that were initially specified in the Drupal.settings object.
   // The new ones didn't exist then, so we need to update Drupal.settings
   // by ourselves in order to let AHAH know about those new form elements.
-  $javascript = drupal_add_js(NULL, NULL);
-  $output_js = isset($javascript['setting']) ? '<script type="text/javascript">jQuery.extend(Drupal.settings, '. drupal_to_js(call_user_func_array('array_merge_recursive', $javascript['setting'])) .');</script>' : '';
+  $javascript = drupal_add_js(NULL, NULL, NULL);
+  $settings = array();
+  foreach ($javascript as $scope => $arr) {
+    if (isset($arr['setting'])) {
+      $settings = array_merge($settings, $arr['setting']);
+    }
+  }
+  $output_js = empty($settings) ? '' : '<script type="text/javascript">jQuery.extend(Drupal.settings, '. drupal_to_js(call_user_func_array('array_merge_recursive', $settings)) .');</script>';
 
   $output = theme('status_messages') . drupal_render($field_form) . $output_js;
 
Index: modules/content_multigroup/content_multigroup.node_form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck/modules/content_multigroup/Attic/content_multigroup.node_form.inc,v
retrieving revision 1.1.2.10
diff -u -r1.1.2.10 content_multigroup.node_form.inc
--- modules/content_multigroup/content_multigroup.node_form.inc	10 Aug 2009 04:07:51 -0000	1.1.2.10
+++ modules/content_multigroup/content_multigroup.node_form.inc	17 Oct 2009 11:44:25 -0000
@@ -764,8 +764,14 @@
   // form elements that were initially specified in the Drupal.settings object.
   // The new ones didn't exist then, so we need to update Drupal.settings
   // by ourselves in order to let AHAH know about those new form elements.
-  $javascript = drupal_add_js(NULL, NULL);
-  $output_js = isset($javascript['setting']) ? '<script type="text/javascript">jQuery.extend(Drupal.settings, '. drupal_to_js(call_user_func_array('array_merge_recursive', $javascript['setting'])) .');</script>' : '';
+  $javascript = drupal_add_js(NULL, NULL, NULL);
+  $settings = array();
+  foreach ($javascript as $scope => $arr) {
+    if (isset($arr['setting'])) {
+      $settings = array_merge($settings, $arr['setting']);
+    }
+  }
+  $output_js = empty($settings) ? '' : '<script type="text/javascript">jQuery.extend(Drupal.settings, '. drupal_to_js(call_user_func_array('array_merge_recursive', $settings)) .');</script>';
 
   $output = theme('status_messages') . drupal_render($group_form) . $output_js;
 

