Merge pull request #1437 from mposolda/master

KEYCLOAK-1505 Fix JS error in admin console on old browsers
This commit is contained in:
Marek Posolda 2015-07-09 10:33:27 +02:00
commit adb8bcf791
2 changed files with 2 additions and 4 deletions

View file

@ -806,7 +806,7 @@ module.controller('UserFederationMapperListCtrl', function($scope, $location, No
$scope.hasAnyMapperTypes = false;
for (var property in mapperTypes) {
if (!(property.startsWith('$'))) {
if (!(property.indexOf('$') === 0)) {
$scope.hasAnyMapperTypes = true;
break;
}

View file

@ -155,7 +155,7 @@ public class SyncProvidersTest {
}
@Test
public void test02duplicateUsernameSync() {
public void test02duplicateUsernameAndEmailSync() {
LDAPObject duplicatedLdapUser;
KeycloakSession session = keycloakRule.startSession();
@ -168,8 +168,6 @@ public class SyncProvidersTest {
// Add user to LDAP with duplicated username "user7"
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 {
keycloakRule.stopSession(session, true);
}