Code

Fixed problem with koab tab.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Sep 2006 03:51:12 +0000 (03:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 29 Sep 2006 03:51:12 +0000 (03:51 +0000)
All fields resetted on load.
Added missing cyrus_admins

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4827 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc
plugins/admin/systems/servkolab.tpl

index 086bbd58339b0cecab4826bc1297cfdc3077b1ee..7df78c069c55c64c89652e46a4d51294e4ed0dc6 100644 (file)
@@ -8,6 +8,7 @@ class servkolab extends plugin {
 
   var $postfix_mydomain                 = "";
   var $postfix_mydestination            = "";
+  var $cyrus_admins                     = "";
   var $postfix_mynetworks               = "127.0.0.1/8";
   var $postfix_enable_virus_scan        = "TRUE";
   var $postfix_relayhost                = "";
@@ -16,7 +17,6 @@ class servkolab extends plugin {
   var $cyrus_quotawarn                  = "80";
   var $kolabFreeBusyFuture              = "1";
   var $k                                = "kolab";
-  var $cyrus_admins                     = "TRUE";
   var $cyrus_imap                       = "TRUE";
   var $cyrus_pop3                       = "TRUE";
   var $cyrus_imaps                      = "TRUE";
@@ -42,7 +42,7 @@ class servkolab extends plugin {
     $this->dn       = "k=kolab,".$config->current['BASE'];
 
     /* Load variables, if given*/
-    plugin::plugin($config, $this->dn, $parent);
+    plugin::plugin($config, $this->dn);
 
     /* Copy needed attributes */
     foreach($this->attributes as $val) {
@@ -228,7 +228,7 @@ class servkolab extends plugin {
 
       /* Save checkboxes */
       foreach (array( "postfix_enable_virus_scan", "postfix_allow_unauthenticated",
-            "cyrus_admins", "cyrus_imap", "cyrus_pop3", "cyrus_imaps",
+             "cyrus_imap", "cyrus_pop3", "cyrus_imaps",
             "cyrus_pop3s", "cyrus_sieve", "apache_allow_unauthenticated_fb",
             "proftpd_ftp", "apache_http") as $cb){
         if (isset($_POST[$cb])){
index 446340eb235a98d1d610491d9373abecb7ff57a3..57231d2fa4618c26e7d54ca809887620232c7637 100644 (file)
                        <input type="text" name="postfix_mydestination" value="{$postfix_mydestination}" {$postfix_mydestinationACL}>
                </td>
        </tr>
+       <tr>
+               <td>{t}Cyrus admins{/t}
+               </td>
+               <td>
+                       <input type="text" name="cyrus_admins" value="{$cyrus_admins}" {$cyrus_adminsACL}>
+               </td>
+       </tr>
    </table>    
    <p class="seperator" >&nbsp;</p>
    <table summary="">