From 19a7adc7d4ca29ea9a5b537bbd936522072a27bd Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Mar 2006 05:13:08 +0000 Subject: [PATCH] Fixed copy & paste for phoneAccount git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2899 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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: -- 2.30.2