IDEMPIERE-4349 WTableDirEditor show inactive item (#167)

add back onlyActive logic when items is from cache.
This commit is contained in:
hengsin 2020-07-16 03:28:08 +08:00 committed by GitHub
parent 69256ca2a0
commit 31acb032ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1085,6 +1085,9 @@ public final class MLookup extends Lookup implements Serializable
for(KeyNamePair knp : knpCache)
{
m_lookup.put(knp.getKey(), knp);
String name = knp.getName();
if (name.startsWith(INACTIVE_S) && name.endsWith(INACTIVE_E))
m_hasInactive = true;
}
return;
}
@ -1104,6 +1107,9 @@ public final class MLookup extends Lookup implements Serializable
for(ValueNamePair vnp : vnpCache)
{
m_lookup.put(vnp.getValue(), vnp);
String name = vnp.getName();
if (name.startsWith(INACTIVE_S) && name.endsWith(INACTIVE_E))
m_hasInactive = true;
}
return;
}