summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1410959)
raw | patch | inline | side by side (parent: 1410959)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Sep 2007 08:38:24 +0000 (08:38 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 12 Sep 2007 08:38:24 +0000 (08:38 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7278 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZoneEntries.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc
index 584861e2592262b5f2ab24cfe69c5cd93fae5ee4..47911f43490a6a51adbf22cc2e9e7e5f73080597 100644 (file)
foreach($this->Devices as $key => $dev){
$table .= $this->generateRecordConfigurationRow($key);
}
+ print_a($this->Devices);
$smarty->assign("disableDialog",$this->disableDialog);
$smarty->assign("table",$table);;
if(isset($this->Devices[$Name]['RECORDS'][$RecordID])){
unset($this->Devices[$Name]['RECORDS'][$RecordID]);
}
+
+ /* Check if there is at least one visible record. Else remove complete entry */
+ $visible = false;
+ foreach($this->Devices[$Name]['RECORDS'] as $rec){
+ if(in_array($rec['type'],$this->RecordTypes)){
+ $visible = true;
+ break;
+ }
+ }
+ if(!$visible && isset($this->Devices[$Name]['RECORDS'])){
+ $this->Devices[$Name]['RECORDS'] = array();
+ }
}
}
$todo = array();
+
/* Create todolist
*/
foreach($this->Devices as $name => $dev){