Code

Updated conference listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Mar 2009 14:44:38 +0000 (14:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 6 Mar 2009 14:44:38 +0000 (14:44 +0000)
-Fixed recursive search in reload

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13505 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/conference/class_phoneConferenceManagment.inc

index 4bf90de841760ec0aba6ff61af0e289c13cffcc1..61fd3f93bf053e0e7758102a26bb77180109e234 100644 (file)
@@ -436,20 +436,23 @@ class phoneConferenceManagment extends plugin
    */
   function reload()
   {
-    $Base             = get_ou('phoneConferenceRDN').$this->DivListConference->selectedBase;
     $SubSearch        = $this->DivListConference->SubSearch;
     $Regex            = $this->DivListConference->Regex;
-    $Flags            = GL_SIZELIMIT ; 
+    $Flags            = GL_SIZELIMIT ;
     $Filter           = "(&(|(cn=".$Regex.")(description=".$Regex."))(objectClass=goFonConference))";
     $Attrs            = array("cn","goFonConferenceOwner","goFonPIN","telephoneNumber");
+
     if($SubSearch){
       $Flags |= GL_SUBSEARCH;
+      $Base  = $this->DivListConference->selectedBase;
+      $this->conferences= get_list($Filter, "gofonconference", $Base, $Attrs, $Flags);
+    }else{
+      $Base  = get_ou('phoneConferenceRDN').$this->DivListConference->selectedBase;
+      $this->conferences= get_list($Filter, "gofonconference", $Base, $Attrs, $Flags);
     }
-
-    $this->conferences= get_list($Filter, "gofonconference", $Base, $Attrs, $Flags);
   }
 
+
   function remove_from_parent()
   {
     /* Ehm what are we doinf here ? */