|
@@ -250,14 +250,11 @@ String function cmd_undefine_attribute(write : Boolean, model : Element, element
|
|
|
Element attrs
|
|
|
attrs = getInstantiatableAttributes(model, element_name, "AttributeLink")
|
|
|
if (set_in(dict_keys(attrs), attr_name)):
|
|
|
- if (set_in(dict_keys(attrs), attr_name)):
|
|
|
- if (dict_in(model["model"][element_name], attr_name)):
|
|
|
- model_undefine_attribute(model, element_name, attr_name)
|
|
|
- return "Success"!
|
|
|
- else:
|
|
|
- return "Attribute not defined here: " + attr_name!
|
|
|
+ if (dict_in(model["model"][element_name], attr_name)):
|
|
|
+ model_undefine_attribute(model, element_name, attr_name)
|
|
|
+ return "Success"!
|
|
|
else:
|
|
|
- return "Attribute not defined: " + attr_name!
|
|
|
+ return "Attribute not defined here: " + attr_name!
|
|
|
else:
|
|
|
return "Attribute not found: " + attr_name!
|
|
|
else:
|