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

This commit is contained in:
Rolf Schmidt 2020-06-02 14:09:39 +02:00 committed by Thorsten Eckel
parent fe5a9cfcc1
commit a476d4697c

View file

@ -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