Browse Source

Fixes #1326 - Can't add attributes manually to LDAP sync.

Rolf Schmidt 4 years ago
parent
commit
a476d4697c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/assets/javascripts/app/controllers/_integration/ldap.coffee

+ 1 - 2
app/assets/javascripts/app/controllers/_integration/ldap.coffee

@@ -461,13 +461,12 @@ class ConnectionWizard extends App.WizardModal
 
     el = []
     for source, dest of user_attribute_map
-      continue if !(source of @wizardConfig.wizardData.backend_user_attributes)
       el.push @buildRowUserAttribute(source, dest)
     el
 
   buildRowUserAttribute: (source, dest) =>
     el = $(App.view('integration/ldap_user_attribute_row')())
-    el.find('.js-ldapAttribute').html(@createSelection('source', @wizardConfig.wizardData.backend_user_attributes, source))
+    el.find('.js-ldapAttribute').html(@createSelection('source', @wizardConfig.wizardData.backend_user_attributes, source, true))
     el.find('.js-userAttribute').html(@createSelection('dest', @wizardConfig.wizardData.user_attributes, dest))
     el