summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filefield.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/filefield.module b/filefield.module
index d27c21f..8a1ea88 100644
--- a/filefield.module
+++ b/filefield.module
@@ -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];