From e813f9616102e562e6d45dfc7f9e436d68159d20 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 21 Apr 2008 13:00:49 +0000 Subject: [PATCH] Updated repository service. - Removed warning message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10588 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../repository/class_servRepository.inc | 39 +++---------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc index 35e505cce..04c0c19e2 100644 --- a/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc +++ b/gosa-plugins/goto/admin/systems/services/repository/class_servRepository.inc @@ -153,40 +153,13 @@ class servrepository extends goService $value = base64_decode(preg_replace("/_.$/","",$value)); if(isset($this->repositories[$value])){ + $once = true; + $obj = $this->repositories[$value]; - $ldap = $this->config->get_ldap_link(); - $ldap->cd ($this->config->current['BASE']); - - $url = $this->repositories[$value]['Url']; - $release = $this->repositories[$value]['Release']; - - $ldap->search("(&(objectClass=gotoWorkstation)(objectClass=FAIobject)(FAIdebianMirror=".$url."))",array("cn","FAIclass")); - if ($ldap->count() != 0){ - $found = false; - $obj= array(); - while($attrs = $ldap->fetch()){ - foreach($attrs['FAIclass'] as $class){ - if(preg_match("/".str_replace("/","\/",$release)."$/i",$class)){ - $found = true; - $obj[$ldap->getDN()]= $attrs['cn'][0]; - } - } - } - - if($found){ - msg_dialog::display(_("Warning"), msgPool::stillInUse(_("FAI release"), msgPool::buildList($obj)), WARNING_DIALOG); - } - } - - if(isset($this->repositories[$value])){ - $once = true; - $obj = $this->repositories[$value]; - - /* to be able to detect if this was renamed */ - $obj['initialy_was'] = $obj['Release']; - $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj); - $this->dialog->parent = $this; - } + /* to be able to detect if this was renamed */ + $obj['initialy_was'] = $obj['Release']; + $this->dialog = new servRepositorySetup($this->config,$this->dn,$obj); + $this->dialog->parent = $this; } } } -- 2.30.2