diff --git a/model/jpa/src/main/java/org/keycloak/models/jpa/JpaRealmProvider.java b/model/jpa/src/main/java/org/keycloak/models/jpa/JpaRealmProvider.java index 4388e14b57..383a1b6f43 100755 --- a/model/jpa/src/main/java/org/keycloak/models/jpa/JpaRealmProvider.java +++ b/model/jpa/src/main/java/org/keycloak/models/jpa/JpaRealmProvider.java @@ -120,7 +120,6 @@ public class JpaRealmProvider implements RealmProvider { RealmModel realm = session.realms().getRealm(id); if (realm != null) realms.add(realm); em.flush(); - em.clear(); } return realms; }