IDEMPIERE-1753 Allow field createBy updateBy load data / thanks to Armen Rizal (armenrz)

This commit is contained in:
Carlos Ruiz 2014-11-28 18:44:53 -05:00
parent 44e85e6999
commit 6a74532d1b
1 changed files with 8 additions and 7 deletions

View File

@ -180,13 +180,6 @@ public class GridField
log.log(Level.SEVERE, "(" + m_vo.ColumnName + ") - No LookupInfo"); log.log(Level.SEVERE, "(" + m_vo.ColumnName + ") - No LookupInfo");
return; return;
} }
// Prevent loading of CreatedBy/UpdatedBy
if (m_vo.displayType == DisplayType.Table
&& (m_vo.ColumnName.equals("CreatedBy") || m_vo.ColumnName.equals("UpdatedBy")) )
{
m_vo.lookupInfo.IsCreadedUpdatedBy = true;
m_vo.lookupInfo.DisplayType = DisplayType.Search;
}
// //
loadLookupNoValidate(); loadLookupNoValidate();
} }
@ -220,6 +213,14 @@ public class GridField
if (m_vo.lookupInfo == null) { if (m_vo.lookupInfo == null) {
return; return;
} }
// Prevent loading of CreatedBy/UpdatedBy
if (m_vo.displayType == DisplayType.Table
&& (m_vo.ColumnName.equals("CreatedBy") || m_vo.ColumnName.equals("UpdatedBy")) )
{
m_vo.lookupInfo.IsCreadedUpdatedBy = true;
m_vo.lookupInfo.DisplayType = DisplayType.Search;
m_vo.displayType = DisplayType.Search;
}
m_vo.lookupInfo.IsKey = isKey(); m_vo.lookupInfo.IsKey = isKey();
loadLookupFromFactory(); loadLookupFromFactory();
} }