Code

Fixed copy & paste for phoneAccount
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Mar 2006 05:13:08 +0000 (05:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Mar 2006 05:13:08 +0000 (05:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2899 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 85270ffa99c1409f52b79c3d22d5da15bba8de8f..f67504caeea04325ff1502cf997052adb8fa5a48 100644 (file)
@@ -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: