From 970fb80675b12e58445567df00e1803c8ba0d281 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 11 Oct 2018 14:14:21 +0200 Subject: [PATCH] Respect async flag with set false value --- api/js/jsapi/egw_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/jsapi/egw_json.js b/api/js/jsapi/egw_json.js index 39f91a1e50..b79517f718 100644 --- a/api/js/jsapi/egw_json.js +++ b/api/js/jsapi/egw_json.js @@ -67,7 +67,7 @@ egw.extend('json', egw.MODULE_WND_LOCAL, function(_app, _wnd) // as objects and loosing parameters which are undefined // JSON.strigify([123,undefined]) --> '{"0":123}' instead of '[123,null]' this.parameters = _parameters ? [].concat(_parameters) : []; - this.async = _async ? _async : true; + this.async = typeof _async != 'undefined' ? _async : true; this.callback = _callback ? _callback : null; this.context = _context ? _context : null; this.sender = _sender ? _sender : null;