diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/ProfileEmailDomainDaoImpl.java b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/ProfileEmailDomainDaoImpl.java index 9a8bffd0b4..c4482afb5b 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/ProfileEmailDomainDaoImpl.java +++ b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/ProfileEmailDomainDaoImpl.java @@ -28,6 +28,7 @@ public ProfileEmailDomainEntity addEmailDomain(String orcid, String emailDomain, e.setEmailDomain(emailDomain); e.setOrcid(orcid); e.setVisibility(visibility); + e.setGeneratedByScript(false); entityManager.persist(e); return e; }