description reference persist small fix

This commit is contained in:
CITE\amentis 2024-10-07 09:54:02 +03:00
parent f7521e7589
commit 2541cc7258
1 changed files with 2 additions and 2 deletions

View File

@ -696,8 +696,8 @@ public class DescriptionServiceImpl implements DescriptionService {
if (!this.conventionService.isListNullOrEmpty(fieldPersist.getReferences())) {
List<UUID> usedReferences = new ArrayList<>();
for (ReferencePersist referencePersist : fieldPersist.getReferences()) {
if (usedReferences.contains(referencePersist.getId())) continue;
usedReferences.add(referencePersist.getId());
if (referencePersist.getId() != null && usedReferences.contains(referencePersist.getId())) continue;
if (referencePersist.getId() != null) usedReferences.add(referencePersist.getId());
DescriptionReferencePersist descriptionReferencePersist = new DescriptionReferencePersist();
descriptionReferencePersist.setData(new DescriptionReferenceDataPersist());
descriptionReferencePersist.getData().setFieldId(fieldId);