From b0df0c5644de4ad7497b3144a718af828ad32771 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Aug 2005 14:37:26 +0000 Subject: [PATCH] You can't delete any entry, while goFonForwarding is Set ? 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 5ab022af6..d579878fb 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -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); -- 2.30.2