summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/javascripts/prototype.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/javascripts/prototype.js b/public/javascripts/prototype.js
index db86961e4..f84a52e2a 100644
--- a/public/javascripts/prototype.js
+++ b/public/javascripts/prototype.js
@@ -4993,7 +4993,13 @@ var Form = {
key = element.name; value = $(element).getValue();
if (value != null && element.type != 'file' && (element.type != 'submit' || (!submitted &&
submit !== false && (!submit || key == submit) && (submitted = true)))) {
- result = accumulator(result, key, value);
+ if (Object.isArray(value)){
+ value.each(function(value) {
+ result = accumulator(result, key, value);
+ });
+ } else {
+ result = accumulator(result, key, value);
+ }
}
}
return result;