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:
parent
0fa5e00d34
commit
e6785ab960
|
@ -1267,7 +1267,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
|||
{
|
||||
// set parent column name
|
||||
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 )
|
||||
m_parentColumnName = "";
|
||||
|
||||
|
|
Loading…
Reference in New Issue