Merge branch 'develop' of git.znuny.com:zammad/zammad into develop
This commit is contained in:
commit
2d6e4eb9d2
1 changed files with 7 additions and 2 deletions
|
@ -5,8 +5,13 @@ module Import
|
||||||
|
|
||||||
def self.import(config: nil, ldap: nil, **kargs)
|
def self.import(config: nil, ldap: nil, **kargs)
|
||||||
|
|
||||||
config ||= Setting.get('ldap_config')
|
# config might be an empty Hash due to the ImportJob payload
|
||||||
ldap ||= ::Ldap.new(config)
|
# store column which will be an empty hash if the content is NULL
|
||||||
|
if config.blank?
|
||||||
|
config = Setting.get('ldap_config')
|
||||||
|
end
|
||||||
|
|
||||||
|
ldap ||= ::Ldap.new(config)
|
||||||
|
|
||||||
@config = config
|
@config = config
|
||||||
@ldap = ldap
|
@ldap = ldap
|
||||||
|
|
Loading…
Reference in a new issue