From: hickert Date: Tue, 12 Oct 2010 10:28:04 +0000 (+0000) Subject: Do not set primary mail address while we create a new dist list. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b77de5f4458f635dbf868b20667198ee7abaf657;p=gosa.git Do not set primary mail address while we create a new dist list. -distAdd already assigns a primary mail address git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19999 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc b/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc index 29766a234..5bcf5d161 100644 --- a/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc +++ b/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc @@ -411,7 +411,7 @@ class GroupwareDistributionList extends plugin // Updated primaryMailAddress value, if needed: // -> is a new distribution list or // -> the value for 'primaryMailAddress' has changed. - if(!$this->initially_was_account || $this->primaryMailAddress != $this->saved_attributes['primaryMailAddress']){ + if($this->initially_was_account && $this->primaryMailAddress != $this->saved_attributes['primaryMailAddress']){ $rpc->gwDistSetPrimaryMailAddress($this->cn, $this->primaryMailAddress); if(!$rpc->success()){ $message = sprintf(_("Failed to update the primary mail address for distribution list '%s'! Error was: '%s'."),