Code

Fixed detection of used member names
[gosa.git] / plugins / admin / groups / class_groupManagement.inc
index e7751d531927774d2b53e81f619c64fe2f595c7f..637abae5b9309b5a85f151b73377625fdc7b912a 100644 (file)
@@ -340,12 +340,13 @@ class groupManagement extends plugin
       return ($display);
     }
 
-    
+
     /* Check if there is a snapshot dialog open */
-    if($str = $this->showSnapshotDialog($this->DivListGroup->selectedBase,array(get_groups_ou().$this->DivListGroup->selectedBase))){
+    $base = $this->DivListGroup->selectedBase;
+    if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
       return($str);
     }
-
+   
     /* Display dialog with group list */
     $this->DivListGroup->parent = $this;
     $this->DivListGroup->execute();
@@ -359,6 +360,15 @@ class groupManagement extends plugin
     return($this->DivListGroup->Draw());
   }
 
+
+  /* Return departments, that will be included within snapshot detection */
+  function get_used_snapshot_bases()
+  {
+    return(array(get_groups_ou().$this->DivListGroup->selectedBase));
+  }
+
+
+
   function reload($CreatePosixsList=false)
   {
     $this->grouplist        = array();
@@ -557,7 +567,6 @@ class groupManagement extends plugin
   function check()  { }
   function adapt_from_template($dn) { }
   function password_change_needed()  { }
-  function show_header($button_text, $text, $disabled= FALSE)  { }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>