Code

Fixed detection of already used object names
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index 3142979c018c07979473ff3530dcfea6820d0668..5862a766362b164337354791f4c54f3d43170208 100644 (file)
@@ -346,8 +346,9 @@ class ogroupManagement extends plugin
       Display list 
      ****************/
 
-   /* Check if there is a snapshot dialog open */
-    if($str = $this->showSnapshotDialog($this->DivListOGroup->selectedBase,get_groups_ou())){
+    /* Check if there is a snapshot dialog open */
+    $base = $this->DivListOGroup->selectedBase;
+    if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
       return($str);
     }
 
@@ -365,6 +366,14 @@ class ogroupManagement extends plugin
   }
 
 
+  /* Return departments, that will be included within snapshot detection */
+  function get_used_snapshot_bases()
+  {
+    return(array(get_people_ou().$this->DivListOGroup->selectedBase));
+  }
+
+  
+
   function convert_list($input)
   {
     $temp= "";