From: hickert Date: Thu, 23 Mar 2006 05:13:08 +0000 (+0000) Subject: Fixed copy & paste for phoneAccount X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=19a7adc7d4ca29ea9a5b537bbd936522072a27bd;p=gosa.git Fixed copy & paste for phoneAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2899 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 85270ffa9..f67504cae 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -433,7 +433,7 @@ class phoneAccount extends plugin $SQL[] = "DELETE FROM ".$a_SETUP['VOICE_TABLE']." WHERE customer_id=".$newnums[$i_new_key].";"; // Delete old entries $b_first_deleted =false; - if(is_array($oldnums)){ + if(isset($oldnums) && is_array($oldnums)){ foreach($oldnums as $s_telenums){ $SQL[] = "DELETE FROM ".$a_SETUP['EXT_TABLE']." WHERE exten='".$s_telenums."';\n"; if(!$b_first_deleted){ @@ -1168,6 +1168,16 @@ $ldap->modify ($this->attrs); return($display); } + function saveCopyDialog() + { + $this->execute(); + if(isset($_POST['goFonVoicemailPIN'])) { + $this->goFonVoicemailPIN = $_POST['goFonVoicemailPIN']; + } + if(isset($_POST['goFonPIN'])){ + $this->goFonPIN = $_POST['goFonPIN']; + } + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: