- 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:
Benjamin Renard 2008-07-29 15:44:28 +00:00
parent 83922b5522
commit c17f9224fa
3 changed files with 3 additions and 2 deletions

View file

@ -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'));
} }
/** /**

View file

@ -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() {

View file

@ -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 {