Code

You can't delete any entry, while goFonForwarding is Set ?
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 14:37:26 +0000 (14:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 17 Aug 2005 14:37:26 +0000 (14:37 +0000)
Workaround, : First save the entry again than remove phone account

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1180 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/phoneaccount/class_phoneAccount.inc

index 5ab022af63a3c54d0973ac5fffb8dd0bf8407445..d579878fba45dc57d53012f73f8f7e9bdb3dae03 100644 (file)
@@ -477,6 +477,7 @@ class phoneAccount extends plugin
 
   function execute()
   {
+
     /* force postmodify event, to restart phones */
 
     $this->parent->by_object['user']->is_modified=TRUE;
@@ -811,11 +812,14 @@ class phoneAccount extends plugin
     }
     unset($this->attrs['macro'])  ;
 
+    $this->attrs['goFonForwarding']=array();
+
     $this->generate_mysql_entension_entries(true);
 
     if($this->attrs['goFonMacro']==""){
       $this->attrs['goFonMacro']=array();
     }
+
     /* Write back to ldap */
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->dn);