Code

some minor fixes for base selects.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Nov 2006 11:27:36 +0000 (11:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 29 Nov 2006 11:27:36 +0000 (11:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5247 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_phoneGeneric.inc
plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/printer.tpl

index 4305e79e2910774faa519f88d8f0a5adf9098cd6..e036269a5a7948e959656a3bf6c6f2c25390f3bd 100644 (file)
@@ -34,7 +34,7 @@ class phoneGeneric extends plugin
   var $netConfigDNS;
 
   /* attribute list for save action */
-  var $attributes= array("cn", "description", 
+  var $attributes= array("cn", "description", "base",
                           "goFonType","goFonDmtfMode","goFonHost","goFonDefaultIP",
                           "goFonQualify","goFonAuth","goFonSecret","goFonInkeys","goFonOutkey",
                           "goFonTrunk","goFonAccountCode","goFonMSN","selected_categorie","goFonPermit","goFonDeny" 
@@ -447,6 +447,7 @@ class phoneGeneric extends plugin
                                                     "objectClass"  => "goFonHardware")),
           "plProvidedAcls"=> array(
             "cn"                  => _("Name"),
+            "base"                => _("Base"),
             "description"         => _("Description"),
             "goFonType"           => _("SIP Mode"),
             "goFonDmtfMode"       => _("SIP DTMF mode"),
index 3c8de38e8fe2e7bdca5f167c7906b56360a81cff..47401c5bcc632085668ffe7640b244b4fd17497e 100644 (file)
@@ -230,10 +230,12 @@ class servgeneric extends plugin
 
     /* Get base selection */
     $tmp = $this->get_allowed_bases();
-    if($tmp[$_POST['base']]){
-      $this->base = $_POST['base'];
-    }else{
-      $this->base = $base_tmp;
+    if(isset($_POST['base'])){
+      if($tmp[$_POST['base']]){
+        $this->base = $_POST['base'];
+      }else{
+        $this->base = $base_tmp;
+      }
     }
   }
 
index 12836edcc52732bb3a03796ce919f22999700d89..e7f8d8d8356a93c109d7a38975d7995bc7f196f0 100644 (file)
@@ -27,7 +27,7 @@
      <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
      <td>
 {render acl=$baseACL}
-      <select id="base" size="1" name="base" title="{t}Choose subtree to place user in{/t}" onchange="document.mainform.submit()">
+      <select id="base" size="1" name="base" title="{t}Choose subtree to place user in{/t}">
        {html_options options=$bases selected=$base_select}
       </select>
 {/render}