summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Haug2011-04-27 00:07:55 -0600
committerNathan Haug2011-04-27 00:07:55 -0600
commitac31ee6a82c948c2e64a5704e47cab357b848695 (patch)
tree8185c8ac97296cbf0f93b6c86f29e607e4d76a3b
parent10ddcbdb0a515ee097b8576f773e00636b2e9ada (diff)
Issue #1042532 by branana: AHAH behavior should be independent from
Fieldgroup.
-rw-r--r--filefield.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/filefield.module b/filefield.module
index c935cc2..800acc8 100644
--- a/filefield.module
+++ b/filefield.module
@@ -619,7 +619,8 @@ function filefield_js($type_name, $field_name, $delta) {
$form_element = $form[$group_name][$field_name][$delta];
}
}
- else {
+
+ if (!isset($form_element)) {
$form_element = $form[$field_name][$delta];
}