Fix bug [ 1843862 ] Lookups not working on Report Viewer window
This commit is contained in:
parent
9bc1406fc3
commit
6b324babaf
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue