[Actions] Update specs

Update specs for actions which change domain objects to
reflect their restriction to types that are creatable,
WTD-723.
This commit is contained in:
Victor Woeltjen
2015-01-27 13:09:23 -08:00
parent 4c42d4de28
commit aa9ceeb2be
4 changed files with 26 additions and 4 deletions

View File

@ -81,7 +81,7 @@ define(
var object = (context || {}).domainObject,
contextCapability = object && object.getCapability("context"),
parent = contextCapability && contextCapability.getParent(),
parentType = parent.getCapability('type'),
parentType = parent && parent.getCapability('type'),
parentCreatable = parentType && parentType.hasFeature('creation');
// Only creatable types should be modifiable