ensure that boolean fields are submited as boolean values when using json

This commit is contained in:
Lukas Kahwe Smith 2017-04-28 16:56:15 +02:00
parent 572c69a509
commit e5268e3f7f
No known key found for this signature in database
GPG Key ID: D859E62434DF44F7

View File

@ -517,6 +517,11 @@
value = $('.value', $(this)).val();
if (value) {
// convert boolean values to boolean
if ('json' === bodyFormat && 'boolean' === $('.tuple_type', $(this)).val()) {
value = '1' === value;
}
// temporary save all additional/doubled parameters
if (key in params) {
doubledParams[key] = value;