This project is archived and is in readonly mode.

#136 ✓invalid
Chris Kalafarski

toQueryString eliminates blank input values

Reported by Chris Kalafarski | June 17th, 2008 @ 09:02 PM | in 2.0 (closed)

This becomes a problem, for instance, on forms used to update records when the form has a default value, and the user makes the value blank (=""). toQueryString does not pass that field in the query string and engines (like rails) ignore the fact that the value is now blank, meaning the value has effectively been unchanged.

Something like:


if (val) {queryString.push( + '=' + encodeURIComponent(val));}

else {queryString.push( + '=');}


could fix this, but I'll have to look at a more permanent solution when I get a chance, just wanted to get this on paper before I forgot.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins