Avoid unnecessary DB access

Steps to reproduce in zkwebui in log level Info:
- Open Sales Order window
A warning is written in console:
DB.getSQLValueStringEx: No Value SELECT ColumnName FROM AD_Column WHERE AD_Column_ID=?
This commit is contained in:
Carlos Ruiz 2011-03-25 20:11:11 -05:00
parent 0fa5e00d34
commit e6785ab960
1 changed files with 2 additions and 1 deletions

View File

@ -1267,7 +1267,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
{ {
// set parent column name // set parent column name
String sql = "SELECT ColumnName FROM AD_Column WHERE AD_Column_ID=?"; String sql = "SELECT ColumnName FROM AD_Column WHERE AD_Column_ID=?";
m_parentColumnName = DB.getSQLValueString(null, sql, m_vo.Parent_Column_ID ); if (m_vo.Parent_Column_ID > 0)
m_parentColumnName = DB.getSQLValueString(null, sql, m_vo.Parent_Column_ID );
if ( m_parentColumnName == null ) if ( m_parentColumnName == null )
m_parentColumnName = ""; m_parentColumnName = "";