Merge pull request #1437 from mposolda/master
KEYCLOAK-1505 Fix JS error in admin console on old browsers
This commit is contained in:
commit
adb8bcf791
2 changed files with 2 additions and 4 deletions
|
@ -806,7 +806,7 @@ module.controller('UserFederationMapperListCtrl', function($scope, $location, No
|
||||||
|
|
||||||
$scope.hasAnyMapperTypes = false;
|
$scope.hasAnyMapperTypes = false;
|
||||||
for (var property in mapperTypes) {
|
for (var property in mapperTypes) {
|
||||||
if (!(property.startsWith('$'))) {
|
if (!(property.indexOf('$') === 0)) {
|
||||||
$scope.hasAnyMapperTypes = true;
|
$scope.hasAnyMapperTypes = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,7 +155,7 @@ public class SyncProvidersTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test02duplicateUsernameSync() {
|
public void test02duplicateUsernameAndEmailSync() {
|
||||||
LDAPObject duplicatedLdapUser;
|
LDAPObject duplicatedLdapUser;
|
||||||
|
|
||||||
KeycloakSession session = keycloakRule.startSession();
|
KeycloakSession session = keycloakRule.startSession();
|
||||||
|
@ -168,8 +168,6 @@ public class SyncProvidersTest {
|
||||||
// Add user to LDAP with duplicated username "user7"
|
// Add user to LDAP with duplicated username "user7"
|
||||||
duplicatedLdapUser = FederationTestUtils.addLDAPUser(ldapFedProvider, testRealm, "user7", "User7FN", "User7LN", "user7-something@email.org", null, "126");
|
duplicatedLdapUser = FederationTestUtils.addLDAPUser(ldapFedProvider, testRealm, "user7", "User7FN", "User7LN", "user7-something@email.org", null, "126");
|
||||||
|
|
||||||
// Add user to LDAP with duplicated email "user7@email.org"
|
|
||||||
//FederationTestUtils.addLDAPUser(ldapFedProvider, testRealm, "user7-something", "User7FNN", "User7LNL", "user7@email.org", null, "126");
|
|
||||||
} finally {
|
} finally {
|
||||||
keycloakRule.stopSession(session, true);
|
keycloakRule.stopSession(session, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue