Code

Added additional remove
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Oct 2009 09:05:56 +0000 (09:05 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Oct 2009 09:05:56 +0000 (09:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14712 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc

index f64861b2bcce2bec59b84389c7d0c61bf534118c..6b5a7e279495f05692463cabb93d938d5939e7ad 100644 (file)
@@ -140,6 +140,10 @@ class servrepository extends goService
 
             if ($found){
               msg_dialog::display(_("Error"), msgPool::stillInUse(_("FAI release"), msgPool::buildList($obj)), ERROR_DIALOG);
+            }else{
+              if(isset($this->repositories[$value])){
+                unset($this->repositories[$value]);
+              }
             }
           }else{
             if(isset($this->repositories[$value])){