summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f8a6bb7)
raw | patch | inline | side by side (parent: f8a6bb7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Oct 2010 06:50:18 +0000 (06:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 13 Oct 2010 06:50:18 +0000 (06:50 +0000) |
.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20011 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20011 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc b/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc
index ad57ce0c7f4b879b74fbf91f39546820fb6d29dd..69c39c99d99bd4eb7c65abae3a709b603228436f 100644 (file)
--- a/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc
+++ b/gosa-plugins/groupware/admin/ogroups/GroupwareDistributionList/class_GroupwareDistributionList.inc
}
}
- // If we're creating a new ogroup, then we definately have no extension yet.
+ // If we're creating a new ogroup, then we've definately no extension, yet.
$this->rpcError = FALSE;
if($this->cn == "" || $this->dn == "new"){
$is_account = FALSE;
}else{
- // Check whether a mathing distribution-list exsits or not?
+ // Check whether a mathing distribution-list exists or not!
$is_account = $rpc->gwDistExists($this->orig_cn);
if(!$rpc->success()){
$this->rpcError = TRUE;
}
- /*! \brief Add given mail address to the list of alternate adresses ,
- * check if this mal address is used, skip adding in this case
+ /*! \brief Add given mail address to the list of alternate adresses,
+ * check if this mal address is used, skip addition in this case.
*/
function addAlternate($address)
{
}
- /*! \brief Removes the distribution list extension for the current
+ /*! \brief Removes the distribution list extension from the current
* object group.
*/
function remove_from_parent()
}
// 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']){
$rpc->gwDistSetPrimaryMailAddress($this->cn, $this->primaryMailAddress);
}
}
- // Check which accounts have valid groupware mail addresses.
+ // Check which object-group member have a valid groupware mail addresses.
+ // We can only add valid groupware extensions as distribution list member.
$uids = $this->getOgroupMemberList();
$rpc = $this->config->getRpcHandle();
$verified = $rpc->gwVerifyAcct($uids);
if(!empty($mail)) $hasExt[] = $mail;
}
}
+
+ // Check for added or removed distribution list members now.
$all = array_merge($hasExt, $this->saved_attributes['memberList']);
foreach($all as $member){
if(!in_array($member,$hasExt)){