Fix bug [ 1843862 ] Lookups not working on Report Viewer window

This commit is contained in:
Carlos Ruiz 2007-12-04 07:22:48 +00:00
parent 9bc1406fc3
commit 6b324babaf
1 changed files with 7 additions and 2 deletions

View File

@ -665,8 +665,13 @@ public final class MLookup extends Lookup implements Serializable
if (validation.length() == 0 && m_info.ValidationCode.length() > 0) if (validation.length() == 0 && m_info.ValidationCode.length() > 0)
{ {
log.fine(m_info.KeyColumn + ": Loader NOT Validated: " + m_info.ValidationCode); log.fine(m_info.KeyColumn + ": Loader NOT Validated: " + m_info.ValidationCode);
m_lookup.clear(); // Bug 1843862 - Lookups not working on Report Viewer window
return; // globalqss - when called from Viewer window ignore error about unparsabe context variables
// there is no context in report viewer windows
if (! Env.getWindow(m_info.WindowNo).getClass().getName().equals("org.compiere.print.Viewer")) {
m_lookup.clear();
return;
}
} }
else else
{ {