Commit a3a32860 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3743 In FAI plugin base propositions should contain distribution

parent 08d8a094
......@@ -813,7 +813,8 @@ class faiManagement extends management
$ldap->search('(objectClass=FAIbranch)', array('ou','FAIstate'));
while ($release = $ldap->fetch()) {
$list[$release['dn']] = $release['ou'][0];
preg_match('/[^,],ou=([^,]+),/', $release['dn'], $m);
$list[$release['dn']] = $m[1].'/'.$release['ou'][0];
return $list;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment