diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc
index 4736c9dd3edaaf4fd338c026c80f7e7ae78b13f9..6f75496ac74ffd65550705d3107460eb5672518c 100644 (file)
$once = false;
foreach($_POST as $name => $value){
+ if(preg_match("/AddRepository/",$name)){
+ $once = true;
+ $this->dialog = new servRepositorySetup($this->config,$this->dn);
+ $this->dialog->acl = $this->acl;
+ }
+
if((preg_match("/^delete_/",$name))&&(!$once)){
$value = preg_replace("/delete_/","",$name);
$this->dialog = new servRepositorySetup($this->config,$this->dn,$obj);
$this->dialog->acl = $this->acl;
}
-
+
+ /*
if(isset($_POST['AddRepository'])){
$this->dialog = new servRepositorySetup($this->config,$this->dn);
$this->dialog->acl = $this->acl;
}
+ */
if(isset($_POST['repository_setup_save'])){
$this->dialog->save_object();