summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a4ce95)
raw | patch | inline | side by side (parent: 4a4ce95)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 29 Sep 2010 11:46:28 +0000 (11:46 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 29 Sep 2010 11:46:28 +0000 (11:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19848 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_Groupware.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc
index 3fc734804ef20c9a33af51da520ab8c4d8177934..448a5cda7f006239e050a7e3591c273c6426af99 100644 (file)
$this->init();
}
-
/*! \brief Try to execute a function on the gosa backend using json-rpc.
* This method also takes care about errors and sets the required
* class members, such as rpcError and rpcErrorMessage.
{
$params = func_get_args();
unset($params[0]);
- //echo "------<br>Calling function:".$function." Params".var_dump($params)."<br>";
+ echo "------<br>Calling function:".$function." Params".var_dump($params)."<br>";
$rpc = $this->config->getRpcHandle();
$this->groupwareDao->save("primaryMail", $this->uid, $this->mailAddress);
}\r
- // Save alternateAddresses and forwarding.
-\r
+ // Save alternateAddresses and forwarding. \r
\r
- if(!empty($this->forwardingAddresses)
+ if(!empty($this->alternateAddresses)
&& isset($this->alternateAddresses)
&& is_array($this->alternateAddresses)){
$this->groupwareDao->save("alternateAddresses", $this->uid, array($this->alternateAddresses));
}\r
if(!empty($this->forwardingAddresses)
&& isset($this->forwardingAddresses)
- && is_array($this->forwardingAddresses)){
- $this->groupwareDao->save("forwardingAddresses", $this->uid, array($this->forwardingAddresses));
+ && is_array($this->forwardingAddresses)){\r
+ \r
+ $fw = array();
+ //only the first Address will be set as forward Address.\r
+ $fw[$this->forwardingAddresses[0]] = true;
+
+ $this->groupwareDao->save("forwardingAddresses", $this->uid, array($fw));
\r
}
// Save the quota
$quota = array( "warn_limit" => $this->mailBoxWarnLimitValue,
"send_limit" => $this->mailBoxSendSizelimitValue,
"hard_limit" => $this->mailBoxHardSizelimitValue,
- "hold" => $this->quotaSize,
- "usage" => $this->quotaUsage);
+ "hold" => $this->quotaSize);
+
$this->groupwareDao->save("quotaSize", $this->uid, $quota);
}
diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc
index f1c5f7f644ac6bc8e4bdd0f138f481c857fe68d1..1c6be18aeb5f9224cc19dc5e68524b151b8c4aa9 100644 (file)
$resultArr["forwardingAddresses"] = $this->get("forwardingAddresses", array($uid));\r
}\r
\r
- if($this->groupwarePluginRef->isFeatureEnabled("forwardingAddresses")){\r
- $resultArr["forwardingAddresses"] = $this->get("forwardingAddresses", array($uid));\r
- }\r
\r
// Location dropdownlist - only readable\r
if($this->groupwarePluginRef->isFeatureEnabled("mailLocations")){\r