From e43429174d340aeae789e3043fb620e9acde9b69 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Tue, 2 Apr 2019 10:01:57 +0200 Subject: [PATCH] Context_lib: small format changes --- process/Context_lib/process.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/process/Context_lib/process.js b/process/Context_lib/process.js index 4073611e2f..8e16faee0d 100644 --- a/process/Context_lib/process.js +++ b/process/Context_lib/process.js @@ -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"); } -- GitLab