changeset 1f370c1ecbe1 in sao:6.0
details: https://hg.tryton.org/sao?cmd=changeset&node=1f370c1ecbe1
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 52e9cf630f98 -r 1f370c1ecbe1 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) {

Reply via email to