- 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,7 +40,12 @@ if($LSsession -> startLSsession()) {
$filter = $_SESSION['LSsession']['LSsearch'][$LSobject]['filter'];
if (isCompatibleDNs($_SESSION['LSsession']['LSsearch'][$LSobject]['topDn'],$GLOBALS['LSsession'] -> topDn)) {
$topDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['topDn'];
$selectedTopDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn'];
if (isset($_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn'])) {
$selectedTopDn = $_SESSION['LSsession']['LSsearch'][$LSobject]['selectedTopDn'];
}
else {
$selectedTopDn = $GLOBALS['LSsession'] -> topDn;
}
}
else {
$selectedTopDn = $GLOBALS['LSsession'] -> topDn;