mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +08:00
PL-10682 Remove creation of embedded entities in CreateAction
This commit is contained in:
parent
175ee94609
commit
3d0e85bc9c
@ -211,17 +211,6 @@ public class CreateAction extends BaseAction implements Action.HasOpenType, Acti
|
||||
|
||||
final Entity item = dataservice.newInstance(datasource.getMetaClass());
|
||||
|
||||
// instantiate embedded fields
|
||||
Collection<MetaProperty> properties = datasource.getMetaClass().getProperties();
|
||||
for (MetaProperty property : properties) {
|
||||
if (!property.isReadOnly() && metadata.getTools().isEmbedded(property)) {
|
||||
if (item.getValue(property.getName()) == null) {
|
||||
Entity defaultEmbeddedInstance = dataservice.newInstance(property.getRange().asClass());
|
||||
item.setValue(property.getName(), defaultEmbeddedInstance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (target instanceof Tree) {
|
||||
String hierarchyProperty = ((Tree) target).getHierarchyProperty();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user