Skip to content

Commit 1c8f486

Browse files
Merge pull request BroadleafCommerce#387 from BroadleafCommerce/qa-1655-displayValue-not-maintained-in-updateSubCollectionEntity
Display value gets swapped out with a numerical value on to one lookups when a sub collection add fails validation
2 parents e728310 + 4c7ed64 commit 1c8f486

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/server/service/AdminEntityServiceImpl.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,7 @@ public PersistenceResponse addSubCollectionEntity(EntityForm entityForm, ClassMe
380380
Entity parentEntity, List<SectionCrumb> sectionCrumbs)
381381
throws ServiceException, ClassNotFoundException {
382382
// Assemble the properties from the entity form
383-
List<Property> properties = new ArrayList<Property>();
384-
for (Entry<String, Field> entry : entityForm.getFields().entrySet()) {
385-
Property p = new Property();
386-
p.setName(entry.getKey());
387-
p.setValue(entry.getValue().getValue());
388-
properties.add(p);
389-
}
383+
List<Property> properties = getPropertiesFromEntityForm(entityForm);
390384

391385
FieldMetadata md = field.getMetadata();
392386

0 commit comments

Comments
 (0)