From 0a3de09b5a7970a6474a5c0315a9137b8cff1ce2 Mon Sep 17 00:00:00 2001 From: girirajsharma Date: Sun, 4 Oct 2015 23:44:44 +0530 Subject: [PATCH] [KEYCLOAK-1864] No names for required actions --- .../keycloak/models/mongo/keycloak/adapters/RealmAdapter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/model/mongo/src/main/java/org/keycloak/models/mongo/keycloak/adapters/RealmAdapter.java b/model/mongo/src/main/java/org/keycloak/models/mongo/keycloak/adapters/RealmAdapter.java index 25ef7de4e9..a6166cd5e2 100755 --- a/model/mongo/src/main/java/org/keycloak/models/mongo/keycloak/adapters/RealmAdapter.java +++ b/model/mongo/src/main/java/org/keycloak/models/mongo/keycloak/adapters/RealmAdapter.java @@ -1649,6 +1649,7 @@ public class RealmAdapter extends AbstractMongoAdapter impleme RequiredActionProviderEntity auth = new RequiredActionProviderEntity(); auth.setId(KeycloakModelUtils.generateId()); auth.setAlias(model.getAlias()); + auth.setName(model.getName()); auth.setProviderId(model.getProviderId()); auth.setConfig(model.getConfig()); auth.setEnabled(model.isEnabled()); @@ -1679,6 +1680,7 @@ public class RealmAdapter extends AbstractMongoAdapter impleme model.setId(entity.getId()); model.setProviderId(entity.getProviderId()); model.setAlias(entity.getAlias()); + model.setName(entity.getName()); model.setEnabled(entity.isEnabled()); model.setDefaultAction(entity.isDefaultAction()); Map config = new HashMap<>();