Merge pull request #989 from lsmith77/submit-boolean-as-json-boolean

ensure that boolean fields are submited as boolean values when using json
This commit is contained in:
Lukas Kahwe Smith 2017-04-28 17:27:09 +02:00 committed by GitHub
commit ae18441763

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;