Skip to content
Snippets Groups Projects
Commit e4342917 authored by Johannes Goderbauer's avatar Johannes Goderbauer
Browse files

Context_lib: small format changes

parent 1d3268e6
No related branches found
No related tags found
No related merge requests found
......@@ -352,7 +352,9 @@ ContextUtils.getNameSql = function(pContextId, pRowId)
var selectMap = ContextUtils.getSelectMap ()
if (selectMap[pContextId] != undefined)
{
return SqlCondition.begin().andPrepare(selectMap[pContextId].getFullIdField(), pRowId).buildSql("select " + selectMap[pContextId].titleExpression + " from " + selectMap[pContextId].getFullFromClause(), "1 = 2");
return SqlCondition.begin().andPrepare(selectMap[pContextId].getFullIdField(), pRowId)
.buildSql("select " + selectMap[pContextId].titleExpression
+ " from " + selectMap[pContextId].getFullFromClause(), "1 = 2");
}
else
return "select 1 from person where 1=2";
......@@ -394,5 +396,6 @@ ContextUtils.getContextDataSql = function(pContextId, pRowId, pWithDate, pActive
if (pWithState === true)
stateColumn = ", " + (selectMap[pContextId].stateField || "''");
return cond.buildSql("select " + selectMap[pContextId].getFullIdField() + ", " + selectMap[pContextId].titleExpression + dateColumn + stateColumn + " from " + selectMap[pContextId].getFullFromClause(), "1=1");
return cond.buildSql("select " + selectMap[pContextId].getFullIdField() + ", " + selectMap[pContextId].titleExpression + dateColumn + stateColumn
+ " from " + selectMap[pContextId].getFullFromClause(), "1=1");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment