fix: stringify objects before sending
This commit is contained in:
parent
68528ca23d
commit
3ec76fb7e0
1 changed files with 6 additions and 0 deletions
|
|
@ -112,6 +112,12 @@ $.extend(frappe, {
|
|||
opts.args.cmd = opts.method;
|
||||
}
|
||||
|
||||
$.each(opts.args, function(key, val) {
|
||||
if(typeof val != "string" || val !== null) {
|
||||
opts.args[key] = JSON.stringify(val);
|
||||
}
|
||||
});
|
||||
|
||||
if(!opts.no_spinner) {
|
||||
//NProgress.start();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue