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

fixed some errors when defining very simple contexts for 360degree

parent 8cddb29f
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ function _get360Data(pSelectMap, pBaseContextId, pContactId, pContextList, pActi
record[5] = translate.text(pActive);
else
{
if(pSelectMap[context].activeStates.indexOf(row[3]) > -1)
if(pSelectMap[context].activeStates && pSelectMap[context].activeStates.indexOf(row[3]) > -1)
record[5] = translate.text("true");
else
record[5] = translate.text("false");
......
......@@ -294,6 +294,9 @@ ContextSelector.create = function(pTableName, pIdField, pTitleExpression)
*/
ContextSelector.prototype.getFullField = function(pField)
{
//always keep undefined (and null) just undefined since it's never a fullQualifier and tablename.undefined is useless
if (pField == undefined)
return undefined;
if (SqlUtils.isFullFieldQualifier(pField))
return pField;
else
......
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