description reference persist small fix
(cherry picked from commit 2541cc7258
)
This commit is contained in:
parent
e1bcc362b7
commit
f98c05a916
|
@ -735,8 +735,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