Follow up #1814 and #1822: LDAP sync BaseDN detection is broken because of ambiguously Coffescript syntax statement evaluation.

This commit is contained in:
Thorsten Eckel 2018-04-26 12:57:55 +02:00
parent 56a8481b64
commit 8db4ff31cf

View file

@ -294,7 +294,7 @@ class ConnectionWizard extends App.WizardModal
option = ''
options = {}
if !_.isEmpty data.attributes && !_.isEmpty data.attributes.namingcontexts
if !_.isEmpty(data.attributes) && !_.isEmpty(data.attributes.namingcontexts)
for dn in data.attributes.namingcontexts
options[dn] = dn
if option is ''