From 51de0d7231102aeba22dc8bacc5e01b2216df2a9 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 20 Jun 2008 11:42:44 +0000 Subject: [PATCH] Updated Fon Account, fixed undefined index. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11396 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/gofon/phoneaccount/class_phoneAccount.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc index 831f5bd5e..d7845277b 100644 --- a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc +++ b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc @@ -38,7 +38,7 @@ class phoneAccount extends plugin var $CopyPasteVars = array("phoneNumbers","macroarray","macrostillavailable"/*"phoneNumbers" -Reset- */, "hardware_list","used_hardware"); - var $attributes = array("goFonDeliveryMode", "goFonFormat","cn","goFonHomeServer","goFonContext","goFonVoiceMailContext", + var $attributes = array("goFonDeliveryMode", "goFonFormat","cn","goFonHomeServer", "goFonHardware","goFonPIN","goFonVoicemailPIN","telephoneNumber", "goFonMacro","macro"); var $objectclasses= array("goFonAccount"); @@ -1114,6 +1114,14 @@ class phoneAccount extends plugin } } + foreach(array("goFonVoiceMailContext","goFonContext") as $attr){ + if(in_array($attr,$this->multi_boxes)){ + $smarty->assign("use_".$attr,TRUE); + }else{ + $smarty->assign("use_".$attr,FALSE); + } + } + /* Show main page */ $this->lastmacro = $this->macro; $smarty->assign("multiple_support",$this->multiple_support_active); -- 2.30.2