mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 14:33:49 +01:00
- LSrelation :
-> Correction d'un bug dans l'affichage des objets en relations après un refresh Ajax -> Le topDn pour l'affichage des objets en relation est maintenant celui de tout l'annuaire (màj de la méthode LSeegroup::listUserGroups()) - LSselect : -> Correction d'un bug JS pour l'affichage des infos de debug & des erreurs à l'ouverture.
This commit is contained in:
parent
83922b5522
commit
c17f9224fa
3 changed files with 3 additions and 2 deletions
|
@ -60,7 +60,7 @@ class LSeegroup extends LSldapObject {
|
||||||
$dn = $userObject -> getDn();
|
$dn = $userObject -> getDn();
|
||||||
$filter = $this -> getObjectFilter();
|
$filter = $this -> getObjectFilter();
|
||||||
$filter = '(&'.$filter.'(uniqueMember='.$dn.'))';
|
$filter = '(&'.$filter.'(uniqueMember='.$dn.'))';
|
||||||
return $this -> listObjects($filter);
|
return $this -> listObjects($filter,$GLOBALS['LSsession'] -> ldapServer['ldap_config']['basedn'],array('scope' => 'sub'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,6 +21,7 @@ var LSselect = new Class({
|
||||||
this.LSselect_refresh_btn.addEvent('click',this.onClickLSselect_refresh_btn.bind(this));
|
this.LSselect_refresh_btn.addEvent('click',this.onClickLSselect_refresh_btn.bind(this));
|
||||||
|
|
||||||
this.initializeContent();
|
this.initializeContent();
|
||||||
|
varLSdefault.ajaxDisplayDebugAndError();
|
||||||
},
|
},
|
||||||
|
|
||||||
initializeContent: function() {
|
initializeContent: function() {
|
||||||
|
|
|
@ -182,7 +182,7 @@ if (!isset($_ERRORS)) {
|
||||||
$list = $objRel -> $relationConf['list_function']($object);
|
$list = $objRel -> $relationConf['list_function']($object);
|
||||||
if (is_array($list)) {
|
if (is_array($list)) {
|
||||||
foreach($list as $o) {
|
foreach($list as $o) {
|
||||||
$data['html'].= "<li class='LSrelation'><span id='".$o -> getDn()."'>".$o -> getDisplayValue()."</span></li>\n";
|
$data['html'].= "<li class='LSrelation'><span id='".$o -> getDn()."'>".$o -> getDisplayValue(NULL,true)."</span></li>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue