Fix error when saving new position from PositionEditor
parent
b619321b12
commit
07319d4a5b
2
util.js
2
util.js
|
@ -162,7 +162,7 @@ var build_array_query = function(data, prefix)
|
||||||
if (typeof data[i] == 'object')
|
if (typeof data[i] == 'object')
|
||||||
s += build_array_query(data[i], k);
|
s += build_array_query(data[i], k);
|
||||||
else
|
else
|
||||||
s = s+'&'+k+'='+(data[i] === false || data[i] === null ? '' : encodeURIComponent(data[i]));
|
s = s+'&'+k+'='+(data[i] === false || data[i] === null || data[i] === undefined ? '' : encodeURIComponent(data[i]));
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue