IDEMPIERE-1039 Zk: Validation rule for Info Window Query Criteria is not working.

This commit is contained in:
Heng Sin Low 2013-06-10 16:15:12 +08:00
parent bbbb6b7327
commit 803997fdf6
1 changed files with 4 additions and 0 deletions

View File

@ -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");