Code

Updated snapshot handling in class management.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Nov 2009 09:31:06 +0000 (09:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 9 Nov 2009 09:31:06 +0000 (09:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14795 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index dcf8c1658194cc9619c0a7507a391f2f46c44a80..324da97b09a3aa70235408fe1302c88d76f1a61c 100644 (file)
@@ -164,6 +164,10 @@ class management
       foreach($this->storagePoints as $sp){
         $bases[] = $sp.$this->headpage->getBase();
       }
+
+      // No bases specified? Try base  
+      if(!count($bases)) $bases[] = $this->headpage->getBase();
+
       $this->snapHandler->setSnapshotBases($bases);
     }
     
@@ -474,6 +478,9 @@ class management
       }
     }
 
+    // No bases specified? Try base  
+    if(!count($bases)) $bases[] = $this->headpage->getBase();
+
     // No target, open the restore removed object dialog.
     if(!count($target)){ 
       $entry = $this->headpage->getBase();