From: hickert Date: Tue, 5 Jul 2005 10:36:48 +0000 (+0000) Subject: postfix_mynetworks is Multi field, added seperator, to allow multiple .... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30613f939cbbfa49d6c8ff408758401313b7fc2b;p=gosa.git postfix_mynetworks is Multi field, added seperator, to allow multiple .... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@918 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servKolab.inc b/plugins/admin/systems/class_servKolab.inc index 910ab152e..c88e17bb3 100644 --- a/plugins/admin/systems/class_servKolab.inc +++ b/plugins/admin/systems/class_servKolab.inc @@ -65,6 +65,15 @@ class servkolab extends plugin { } else { $this->is_account=false; } + + if(is_array($this->attrs['postfix-mynetworks'])){ + unset($this->attrs['postfix-mynetworks']['count']); + $tmp=""; + foreach($this->attrs['postfix-mynetworks'] as $tm){ + $tmp.=$tm.";"; + } + $this->postfix_mynetworks = $tmp; + } } @@ -239,6 +248,18 @@ class servkolab extends plugin { $this->kolabHost[]= $this->cn; } + + $tmp = split(";",$this->postfix_mynetworks); + $this->postfix_mynetworks = array(); + foreach($tmp as $tm){ + trim($tm); + if(!empty($tm)){ + $this->postfix_mynetworks[]=$tm; + } + } + + $this->attrs['postfix_mynetworks']=$this->postfix_mynetworks; + /* Call parents save to prepare $this->attrs */ plugin::save(); diff --git a/plugins/admin/systems/servkolab.tpl b/plugins/admin/systems/servkolab.tpl index c16011ae1..b6f1a597e 100644 --- a/plugins/admin/systems/servkolab.tpl +++ b/plugins/admin/systems/servkolab.tpl @@ -119,8 +119,10 @@ - {t}Hosts/networks allowed to relay{/t}  - + {t}Hosts/networks allowed to relay{/t}
+ +
+ ( {t}Enter multiple values, seperated with{/t} ; )