diff --git a/entity/Attribute_entity/entityfields/attributeactions/children/newchildattribute/stateProcess.js b/entity/Attribute_entity/entityfields/attributeactions/children/newchildattribute/stateProcess.js index 89793c57e872750fcd3a76daa46871f250ed51b7..a1ee18e84b4a9407a6334fc9924ef885a41c7176 100644 --- a/entity/Attribute_entity/entityfields/attributeactions/children/newchildattribute/stateProcess.js +++ b/entity/Attribute_entity/entityfields/attributeactions/children/newchildattribute/stateProcess.js @@ -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.OBJECTSELECTION.toString()) +if(vars.get("$sys.selection").length == 1 && AttributeTypeUtil.isGroupType(vars.get("$field.ATTRIBUTE_TYPE"))) result.string(neon.COMPONENTSTATE_EDITABLE); else result.string(neon.COMPONENTSTATE_DISABLED); \ No newline at end of file