From f674259f3789b2da72c4fb713ac613c646c3ad28 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Jun 2005 11:10:47 +0000 Subject: [PATCH] removed unused samrty assign in phoneaccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@812 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/phoneaccount/class_phoneAccount.inc | 22 ++++++++++--------- plugins/gofon/phoneaccount/generic.tpl | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 3b3a00f81..b131b2b98 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -234,7 +234,7 @@ class phoneAccount extends plugin /* in case of a combo box display a combobox with selected attr */ if($type == "combo"){ - $str="acl, "goFonMacro").">"; foreach(split(":",$default) as $choice){ if($choosen==$choice){ $str.="\n"; @@ -248,7 +248,7 @@ class phoneAccount extends plugin /* Display switch for true false*/ if($type == "bool"){ - $str="acl, "goFonMacro").">"; if($choosen){ $str.=""; @@ -262,7 +262,7 @@ class phoneAccount extends plugin /* display simple textfield */ if($type=="string"){ - $str=""; + $str="acl, "goFonMacro").">"; } /* create table entry*/ @@ -382,7 +382,7 @@ class phoneAccount extends plugin - /* Check box */ + /* Check box * / if ($this->parent->by_object['mailAccount'] && $this->parent->by_object['mailAccount']->is_account && preg_match("/M/i", $this->goFonDeliveryMode)){ @@ -390,7 +390,8 @@ class phoneAccount extends plugin } else { $smarty->assign("fon_to_mail", ""); } - + + if (!isset($this->parent->by_object['mailAccount'])) { $smarty->assign("has_mailaccount", "false"); $this->has_mailAccount= false; @@ -400,7 +401,7 @@ class phoneAccount extends plugin } else { $smarty->assign("has_mailaccount", "true"); } - + */ /* Show main page */ $display.= $smarty->fetch(get_template_path('generic.tpl', TRUE, dirname(__FILE__))); return($display); @@ -436,12 +437,13 @@ class phoneAccount extends plugin } } + /* Check if mail account is active and correct the internal - reference to represent the current status. */ + reference to represent the current status. * / if ($this->parent->by_object['mailAccount']->is_account){ $this->has_mailAccount= TRUE; } - + */ /* Every macro in the select box are available */ if((isset($_POST['macro']))){ $this->macrostillavailable=true; @@ -505,13 +507,13 @@ class phoneAccount extends plugin { plugin::save(); - /* goFonAccount has "mail" as must! Block if no mailaddress is specified... */ + /* goFonAccount has "mail" as must! Block if no mailaddress is specified... * / if (isset($this->parent->by_object['mailAccount']) && !$this->parent->by_object['mailAccount']->is_account) { $this->goFonDeliveryMode= preg_replace("/M/i", "", $this->goFonDeliveryMode); } - + */ /* Save arrays */ $this->attrs['telephoneNumber']= array(); foreach ($this->phoneNumbers as $number){ diff --git a/plugins/gofon/phoneaccount/generic.tpl b/plugins/gofon/phoneaccount/generic.tpl index 987980a51..589534ff4 100644 --- a/plugins/gofon/phoneaccount/generic.tpl +++ b/plugins/gofon/phoneaccount/generic.tpl @@ -59,10 +59,10 @@ - {html_options options=$macros selected=$macro} - + -- 2.30.2