description reference persist small fix
This commit is contained in:
parent
f7521e7589
commit
2541cc7258
|
@ -696,8 +696,8 @@ public class DescriptionServiceImpl implements DescriptionService {
|
||||||
if (!this.conventionService.isListNullOrEmpty(fieldPersist.getReferences())) {
|
if (!this.conventionService.isListNullOrEmpty(fieldPersist.getReferences())) {
|
||||||
List<UUID> usedReferences = new ArrayList<>();
|
List<UUID> usedReferences = new ArrayList<>();
|
||||||
for (ReferencePersist referencePersist : fieldPersist.getReferences()) {
|
for (ReferencePersist referencePersist : fieldPersist.getReferences()) {
|
||||||
if (usedReferences.contains(referencePersist.getId())) continue;
|
if (referencePersist.getId() != null && usedReferences.contains(referencePersist.getId())) continue;
|
||||||
usedReferences.add(referencePersist.getId());
|
if (referencePersist.getId() != null) usedReferences.add(referencePersist.getId());
|
||||||
DescriptionReferencePersist descriptionReferencePersist = new DescriptionReferencePersist();
|
DescriptionReferencePersist descriptionReferencePersist = new DescriptionReferencePersist();
|
||||||
descriptionReferencePersist.setData(new DescriptionReferenceDataPersist());
|
descriptionReferencePersist.setData(new DescriptionReferenceDataPersist());
|
||||||
descriptionReferencePersist.getData().setFieldId(fieldId);
|
descriptionReferencePersist.getData().setFieldId(fieldId);
|
||||||
|
|
Loading…
Reference in New Issue