external identifier fix for description finalization

This commit is contained in:
amentis 2024-05-14 11:49:43 +03:00
parent b14e20edff
commit 9f9e6f6db9
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public class FieldPersist {
.over(item.getReference())
.using(() -> this.validatorFactory.validator(ReferencePersist.ReferenceWithoutTypePersistValidator.class)),
this.refSpec()
.iff(() -> FieldType.isExternalIdentifierType(fieldType) && !this.isNull(item.getExternalIdentifier()))
.iff(() -> FieldType.isExternalIdentifierType(fieldType) && !this.isNull(item.getExternalIdentifier()) && DescriptionStatus.Finalized.equals(this.status) && isVisible && required)
.on(FieldPersist._externalIdentifier)
.over(item.getExternalIdentifier())
.using(() -> this.validatorFactory.validator(ExternalIdentifierPersist.PersistValidator.class))