- LSselect : Correction d'un bug de sélection du topDn lors d'une recherche

chargée à partir du cache lui même créé par LSsearch
This commit is contained in:
Benjamin Renard 2008-07-29 16:30:34 +00:00
parent 45856aca50
commit c857c680a4

View file

@ -40,8 +40,13 @@ if($LSsession -> startLSsession()) {
$filter = $_SESSION['LSsession']['LSsearch'][$LSobject]['filter']; $filter = $_SESSION['LSsession']['LSsearch'][$LSobject]['filter'];
if (isCompatibleDNs($_SESSION['LSsession']['LSsearch'][$LSobject]['topDn'],$GLOBALS['LSsession'] -> topDn)) { if (isCompatibleDNs($_SESSION['LSsession']['LSsearch'][$LSobject]['topDn'],$GLOBALS['LSsession'] -> topDn)) {
$topDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['topDn']; $topDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['topDn'];
if (isset($_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn'])) {
$selectedTopDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn']; $selectedTopDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn'];
} }
else {
$selectedTopDn = $GLOBALS['LSsession'] -> topDn;
}
}
else { else {
$selectedTopDn = $GLOBALS['LSsession'] -> topDn; $selectedTopDn = $GLOBALS['LSsession'] -> topDn;
$topDn = $object -> config['container_dn'].','.$GLOBALS['LSsession'] -> topDn; $topDn = $object -> config['container_dn'].','.$GLOBALS['LSsession'] -> topDn;