Skip to content
Snippets Groups Projects
Commit 7dd4a2df authored by S.Listl's avatar S.Listl
Browse files

Attribute title prefix fix

parent 745c329a
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,7 @@ import("Context_lib");
import("system.vars");
import("system.result");
result.string(ContextUtils.prefixWithCurrentContextTitle(vars.get("$field.FULL_ATTRIBUTE_NAME")));
\ No newline at end of file
var title = vars.get("$field.FULL_ATTRIBUTE_NAME");
if (!(vars.exists("$param.ObjectType_param") && vars.get("$param.ObjectType_param"))) //the prefix shouldn't be in the lookup
title = ContextUtils.prefixWithCurrentContextTitle(title);
result.string(title);
\ 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