From 05a00f71d675debd9032928ca08a00dd8c7515bb Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 29 Nov 2006 11:27:36 +0000 Subject: [PATCH] some minor fixes for base selects. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5247 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_phoneGeneric.inc | 3 ++- plugins/admin/systems/class_servGeneric.inc | 10 ++++++---- plugins/admin/systems/printer.tpl | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 4305e79e2..e036269a5 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -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"), diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index 3c8de38e8..47401c5bc 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -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; + } } } diff --git a/plugins/admin/systems/printer.tpl b/plugins/admin/systems/printer.tpl index 12836edcc..e7f8d8d83 100644 --- a/plugins/admin/systems/printer.tpl +++ b/plugins/admin/systems/printer.tpl @@ -27,7 +27,7 @@ {$must} {render acl=$baseACL} - {html_options options=$bases selected=$base_select} {/render} -- 2.30.2