From f5d9ad507f2660119e315360af1106a2a67dcbcc Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Mar 2010 08:38:04 +0000 Subject: [PATCH] unified post event handling! git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15874 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../gofon/conference/class_phoneConferenceGeneric.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index 1895d9c0c..2e1e58ec2 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -746,12 +746,12 @@ class conference extends plugin $ldap->cd($this->dn); $this->cleanup(); $ldap->modify ($this->attrs); - $this->handle_post_events('modify'); + $mode = 'modify'; } else { $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $this->dn)); $ldap->cd($this->dn); $ldap->add($this->attrs); - $this->handle_post_events('add'); + $mode = 'add'; } /* Log last action */ @@ -763,10 +763,9 @@ class conference extends plugin if (!$ldap->success()){ msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $this->dn, 0, get_class())); + }else{ + $this->handle_post_events($mode); } - - /* Optionally execute a command after we're done */ - $this->postcreate(); } -- 2.30.2