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

Merge branch '1059557_FixAttributeNewChildAttributeSelection' into '2020.1.1'

1059557 fix attribute new child attribute selection

See merge request xrm/basic!288
parents bbb0d440 bda3f7d2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import("system.result");
import("system.vars");
import("system.neon");
if(vars.get("$sys.selection").length == 1 && vars.get("$field.ATTRIBUTE_TYPE") == $AttributeTypes.GROUP.toString())
result.string(neon.COMPONENTSTATE_EDITABLE)
if(vars.get("$sys.selection").length == 1 && (vars.get("$field.ATTRIBUTE_TYPE") == $AttributeTypes.GROUP.toString() || vars.get("$field.ATTRIBUTE_TYPE") == $AttributeTypes.OBJECTSELECTION.toString()))
result.string(neon.COMPONENTSTATE_EDITABLE);
else
result.string(neon.COMPONENTSTATE_DISABLED)
\ No newline at end of file
result.string(neon.COMPONENTSTATE_DISABLED);
\ 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