#367267: Reverting line needed for multigroup support, since it breaks groups until...
authorNathan Haug
Wed, 11 Mar 2009 03:29:40 +0000 (03:29 +0000)
committerNathan Haug
Wed, 11 Mar 2009 03:29:40 +0000 (03:29 +0000)
filefield.module

index d27c21f..8a1ea88 100644 (file)
@@ -449,7 +449,7 @@ function filefield_js($type_name, $field_name, $delta) {
 
   // Update the cached form with the new element at the right place in the form.
   if (module_exists('fieldgroup') && ($group_name = _fieldgroup_field_get_group($type_name, $field_name))) {
-    $form_element = $form[$group_name][$delta][$field_name];
+    $form_element = $form[$group_name][$field_name][$delta];
   }
   else {
     $form_element = $form[$field_name][$delta];