=== modified file 'includes/form.inc' --- includes/form.inc 2007-12-08 14:06:20 +0000 +++ includes/form.inc 2007-12-14 18:39:32 +0000 @@ -1727,7 +1727,7 @@ function form_expand_ahah($element) { 'effect' => empty($element['#ahah']['effect']) ? 'none' : $element['#ahah']['effect'], 'method' => empty($element['#ahah']['method']) ? 'replace' : $element['#ahah']['method'], 'progress' => empty($element['#ahah']['progress']) ? array('type' => 'throbber') : $element['#ahah']['progress'], - 'button' => $element['#type'] == 'submit' ? array($element['#name'] => $element['#value']) : FALSE, + 'button' => isset($element['#executes_submit_callback']) ? array($element['#name'] => $element['#value']) : FALSE, ); // Convert a simple #ahah[progress] type string into an array.