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

fix: Organisation filtering preset did not work anymore

parent 4223884b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,10 @@ import("system.result");
var filter = vars.get("$param.FilterPreSet_param");
if (vars.get("$sys.presentationmode") === neon.CONTEXT_PRESENTATIONMODE_FILTER && (!filter && filter != null))
var res;
if (filter)
res = filter;
else if (vars.get("$sys.presentationmode") === neon.CONTEXT_PRESENTATIONMODE_FILTER)
{
var statusInactive = $KeywordRegistry.contactStatus$inactive();
......@@ -22,8 +25,8 @@ if (vars.get("$sys.presentationmode") === neon.CONTEXT_PRESENTATIONMODE_FILTER &
value: KeywordUtils.getViewValue($KeywordRegistry.contactStatus(), statusInactive)
}]
};
result.string(JSON.stringify(filter));
res = JSON.stringify(filter);
}
result.string(filter);
\ No newline at end of file
if (res)
result.string(res);
\ No newline at end of file
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