summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9c2b6a)
raw | patch | inline | side by side (parent: d9c2b6a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jun 2006 05:40:46 +0000 (05:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jun 2006 05:40:46 +0000 (05:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3804 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_SnapShotDialog.inc | patch | blob | history | |
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_SnapShotDialog.inc b/plugins/admin/systems/class_SnapShotDialog.inc
index 213bde0aeffd1d8eb738ab59dbb707cf311d2e56..dcac0b80c72558c5aa059f1d8aa1d538c80d4f0d 100755 (executable)
or the snapshots for the given object dn */
$res = array();
if($this->DeletedOnes){
- $tmp = $this->getAllDeletedSnapshots($this->dn,true);
+ if(is_array($this->dn)){
+ $tmp = array();
+ foreach($this->dn as $dn){
+ $tmp = array_merge($tmp,$this->getAllDeletedSnapshots($dn,true));
+ }
+ }else{
+ $tmp = $this->getAllDeletedSnapshots($this->dn,true);
+ }
}else{
$tmp = $this->Available_SnapsShots($this->dn,true);
}
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index a94d4b4d5f3093c61ba7b57194d53c76687a1044..55bece3a5fabdaca887538e2b070ea784e0770c8 100644 (file)
}
/* Check if there is a snapshot dialog open */
- if($str = $this->showSnapshotDialog($this->DivListSystem->selectedBase,"ou=systems,")){
+ $tmp = array();
+ foreach(array("phones","servers","printers","terminals","netdevices","workstations") as $ent){
+ $tmp[] = "ou=".$ent.",ou=systems,".$this->DivListSystem->selectedBase;
+ }
+
+ if($str = $this->showSnapshotDialog($this->DivListSystem->selectedBase,$tmp)){
return($str);
}