From 019dc77fc59d2d483b7e92643b1211b1cd7348fb Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 9 Apr 2013 21:45:24 -0500 Subject: [PATCH] IDEMPIERE-845 Reference List not allowing to clear --- .../WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java index 4fe8993911..a84906432f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java @@ -244,6 +244,8 @@ ContextMenuListener, IZoomableEditor retVal = selItem.getValue(); if ((retVal instanceof Integer) && (Integer)retVal == -1) retVal = null; + else if ((retVal instanceof String) && "".equals(retVal)) + retVal = null; } return retVal; }