summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d7f137b)
raw | patch | inline | side by side (parent: d7f137b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 13:17:43 +0000 (13:17 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 13:17:43 +0000 (13:17 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19977 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc
index 3c0cc8c2e84f04bf228a3a2de4874c93daeb1372..0b3e2aa1ada0fb1917d61624a0607898f3ea8601 100644 (file)
function init()
{
- // Check whether a mathing distribution-list exsits or not?
- $rpc = $this->config->getRpcHandle();
- $is_account = $rpc->gwDistExists($this->orig_cn);
- $this->rpcError = FALSE;
-
+# // Check whether a mathing distribution-list exsits or not?
+# $rpc = $this->config->getRpcHandle();
+# $is_account = $rpc->gwDistExists($this->orig_cn);
+# $this->rpcError = FALSE;
+#
# // An error occured abort here
# if(!$rpc->success()){
# $this->rpcError = TRUE;
$rpc = $this->config->getRpcHandle();
if(!$this->initially_was_account){
$rpc->gwDistAdd($this->orig_cn);
- }
- if(!$rpc->success()){
- $message = sprintf(_("Failed to add distribution list '%s'! Error was: '%s'."),
- $this->cn, $rpc->get_error());
- return;
+ if(!$rpc->success()){
+ $message = sprintf(_("Failed to add distribution list '%s'! Error was: '%s'."),
+ $this->cn, $rpc->get_error());
+ return;
+ }
}
// Rename distribution list if cn has changed.
- if(!$this->cn != $this->orig_cn && $this->initially_was_account){
- $rpc->distRename($this->orig_cn, $this->cn);
+ if($this->cn != $this->orig_cn && $this->initially_was_account){
+ $rpc->gwDistRename($this->orig_cn, $this->cn);
if(!$rpc->success()){
$message = sprintf(_("Failed to rename distribution list '%s' to '%s'! Error was: '%s'."),
$this->orig_cn,$this->cn, $rpc->get_error());
// -> is a new distribution list or
// -> the value for 'primaryMailAddress' has changed.
if(!$this->initially_was_account || $this->primaryMailAddress != $this->saved_attributes['primaryMailAddress']){
- $rpc->distSetPrimaryMailAddress($this->cn, $this->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'."),
$this->cn, $rpc->get_error());
sort($this->saved_attributes['alternateAddresses']);
$changed = count(array_diff($this->alternateAddresses,$this->saved_attributes['alternateAddresses']));
if(!$this->initially_was_account || $changed){
- $rpc->distSetPrimaryMailAddress($this->cn, $this->primaryMailAddress);
+ $rpc->gwDistSetPrimaryMailAddress($this->cn, $this->primaryMailAddress);
if(!$rpc->success()){
$message = sprintf(_("Failed to update alternate addresses for distribution list '%s'! Error was: '%s'."),
$this->cn, $rpc->get_error());