From 803997fdf688a719a8f0957c4217b1f71bbab83f Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 10 Jun 2013 16:15:12 +0800 Subject: [PATCH] IDEMPIERE-1039 Zk: Validation rule for Info Window Query Criteria is not working. --- .../WEB-INF/src/org/adempiere/webui/info/InfoWindow.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java index f0a6d10cbc..e8246ef915 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/info/InfoWindow.java @@ -212,6 +212,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL infoColumn.getAD_Reference_Value_ID(), false, false); if (infoColumn.getAD_Val_Rule_ID() > 0) { vo.ValidationCode = infoColumn.getAD_Val_Rule().getCode(); + if (vo.lookupInfo != null) { + vo.lookupInfo.ValidationCode = vo.ValidationCode; + vo.lookupInfo.IsValidated = false; + } } vo.DisplayLogic = infoColumn.getDisplayLogic() != null ? infoColumn.getDisplayLogic() : ""; String desc = infoColumn.get_Translation("Description");