From 0ce31abeaa804324730f976265cff6c3258c3682 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 May 2006 04:09:41 +0000 Subject: [PATCH] Fixed dialog disabling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3531 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDNSeditZoneEntries.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_servDNSeditZoneEntries.inc b/plugins/admin/systems/class_servDNSeditZoneEntries.inc index d45128343..3a13bde7d 100644 --- a/plugins/admin/systems/class_servDNSeditZoneEntries.inc +++ b/plugins/admin/systems/class_servDNSeditZoneEntries.inc @@ -46,8 +46,11 @@ class servDNSeditZoneEntries extends plugin $this->Devices[$attrs['relativeDomainName'][0]]['OrigCn'] = $attrs['relativeDomainName'][0]; } - if(!count($this->Devices)){ - $this->disableDialog = true; + $ldap->cat($this->dn,array("objectClass")); + + $this->disableDialog = true; + if(count($this->Devices)|| $ldap->count()){ + $this->disableDialog = false; } } -- 2.30.2