KEYCLOAK-16832: using realm name instead of id

in order to get localization texts
This commit is contained in:
Boris Stumm 2021-01-18 13:37:32 +01:00 committed by Pedro Igor
parent cdf0ead957
commit c0beca7744

View file

@ -104,7 +104,7 @@ module.controller('GlobalCtrl', function($scope, $http, Auth, Current, $location
if(Current.realm !== null && currentRealm !== Current.realm.id) {
currentRealm = Current.realm.id;
translateProvider.translations(locale, resourceBundle);
RealmSpecificLocalizationTexts.get({id: currentRealm, locale: locale}, function (localizationTexts) {
RealmSpecificLocalizationTexts.get({id: Current.realm.realm, locale: locale}, function (localizationTexts) {
translateProvider.translations(locale, localizationTexts.toJSON());
})
}