From: hickert Date: Fri, 20 Jun 2008 11:42:44 +0000 (+0000) Subject: Updated Fon Account, fixed undefined index. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=51de0d7231102aeba22dc8bacc5e01b2216df2a9;p=gosa.git Updated Fon Account, fixed undefined index. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11396 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);