From 6b4bc86fba94bf71c52cd20a5e29d4650cd8eb79 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud Date: Tue, 24 Jul 2018 09:26:48 +0200 Subject: [PATCH] IDEMPIERE-3759 Env.getContextAsDate should not log warning --- org.adempiere.base/src/org/compiere/util/Env.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/util/Env.java b/org.adempiere.base/src/org/compiere/util/Env.java index 6309c53922..09d1ba5a66 100644 --- a/org.adempiere.base/src/org/compiere/util/Env.java +++ b/org.adempiere.base/src/org/compiere/util/Env.java @@ -871,14 +871,8 @@ public final class Env throw new IllegalArgumentException ("Require Context"); String s = getContext(ctx, WindowNo, context, false); // JDBC Format YYYY-MM-DD example 2000-09-11 00:00:00.0 - if (s == null || s.equals("")) - { - if (!"#date".equalsIgnoreCase(context)) - { - log.log(Level.WARNING, "No value for: " + context); - } + if (Util.isEmpty(s)) return new Timestamp(System.currentTimeMillis()); - } // BUG:3075946 KTU - Fix Thai Date /*