changeset ac1e582b7f8b in sao:6.2 details: https://hg.tryton.org/sao?cmd=changeset&node=ac1e582b7f8b description: Use JavaScript logical NOT when parsing time
The jQuery isEmptyObject is not true on empty string. issue11189 review356351002 (grafted from 1a7b8019712f02416507daa25761772eba125490) diffstat: src/common.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 2a654c1504ac -r ac1e582b7f8b src/common.js --- a/src/common.js Tue Apr 19 13:24:43 2022 +0200 +++ b/src/common.js Tue Apr 19 18:06:14 2022 +0200 @@ -245,7 +245,7 @@ }; Sao.common.parse_time = function(format, value) { - if (jQuery.isEmptyObject(value)) { + if (!value) { return null; } var getNumber = function(pattern) {