mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 00:29:21 +01:00
LScli: fix autocomplete_LSobject_types() in case of configured subDn
This commit is contained in:
parent
712d18b09f
commit
1420439403
1 changed files with 7 additions and 8 deletions
|
@ -599,18 +599,17 @@ class LScli extends LSlog_staticLoggerClass {
|
|||
foreach ($subdn_config as $key => $value) {
|
||||
if (!is_array($value)) continue;
|
||||
if ($key == 'LSobject') {
|
||||
if (isset($value['LSobjects']) && is_array($value['LSobjects']))
|
||||
foreach ($value['LSobjects'] as $type)
|
||||
if (!in_array($type, $types))
|
||||
$types[] = $type;
|
||||
}
|
||||
else {
|
||||
foreach ($value as $objConfig)
|
||||
if (is_array($objConfig) && isset($objConfig['LSobjets']) && is_array($objConfig['LSobjects']))
|
||||
foreach ($value as $subDnObjType => $objConfig)
|
||||
if (is_array($objConfig) && isset($objConfig['LSobjects']) && is_array($objConfig['LSobjects']))
|
||||
foreach ($objConfig['LSobjects'] as $type)
|
||||
if (!in_array($type, $types))
|
||||
$types[] = $type;
|
||||
}
|
||||
else if (isset($value['LSobjects']) && is_array($value['LSobjects'])) {
|
||||
foreach ($value['LSobjects'] as $type)
|
||||
if (!in_array($type, $types))
|
||||
$types[] = $type;
|
||||
}
|
||||
}
|
||||
}
|
||||
return self :: autocomplete_opts($types, $prefix, $case_sensitive, $quote_char);
|
||||
|
|
Loading…
Reference in a new issue