description reference persist small fix

(cherry picked from commit 2541cc7258)
This commit is contained in:
CITE\amentis 2024-10-07 09:54:02 +03:00
parent e1bcc362b7
commit f98c05a916
1 changed files with 2 additions and 2 deletions

View File

@ -735,8 +735,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);