Code

Fixed detection of already used object names
[gosa.git] / plugins / admin / ogroups / class_ogroupManagement.inc
index ced638067314d75935daf0ae0f90306f8cac3d95..5862a766362b164337354791f4c54f3d43170208 100644 (file)
@@ -346,6 +346,12 @@ class ogroupManagement extends plugin
       Display list 
      ****************/
 
+    /* Check if there is a snapshot dialog open */
+    $base = $this->DivListOGroup->selectedBase;
+    if($str = $this->showSnapshotDialog($base,$this->get_used_snapshot_bases())){
+      return($str);
+    }
+
     /* Display dialog with group list */
     $this->DivListOGroup->parent = $this;
     $this->DivListOGroup->execute();
@@ -360,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= "";