From 5b30e30f6a47a7f6e219b5afc3bf4d2b3f6f83dc Mon Sep 17 00:00:00 2001 From: TQ White II/qbook Date: Wed, 15 Feb 2012 10:33:48 -0600 Subject: [PATCH] form_params() was incorrectly returning scalar form values as arrays, now it only returns array for checkbox --- dom/form_params/form_params.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/form_params/form_params.js b/dom/form_params/form_params.js index 69f56ac2..bbf78325 100644 --- a/dom/form_params/form_params.js +++ b/dom/form_params/form_params.js @@ -145,7 +145,7 @@ steal("jquery/dom").then(function( $ ) { //now we are on the last part, set the value if (current[lastPart]) { - if (!$.isArray(current[lastPart]) ) { + if (!$.isArray(current[lastPart] && type === "checkbox") ) { current[lastPart] = current[lastPart] === undefined ? [] : [current[lastPart]]; } if ( write ) {