IDEMPIERE-3174 1005975 display logic is not working when using Null as ''

This commit is contained in:
Heng Sin Low 2016-09-03 17:22:48 +02:00
parent 70699cf4c3
commit 1ebbb7b14e
1 changed files with 2 additions and 2 deletions

View File

@ -194,9 +194,9 @@ public class Evaluator
secondEval = secondEval.replace('\'', ' ').replace('"', ' ').trim(); // strip ' and "
// Handling of ID compare (null => 0)
if (first.indexOf("_ID") != -1 && firstEval.length() == 0)
if (first.trim().endsWith("_ID") && firstEval.length() == 0)
firstEval = "0";
if (second.indexOf("_ID") != -1 && secondEval.length() == 0)
if (second.trim().endsWith("_ID") && secondEval.length() == 0)
secondEval = "0";
// Logical Comparison