Code

fixed acctGetLocation
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 07:54:58 +0000 (07:54 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 07:54:58 +0000 (07:54 +0000)
removed debugs

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19657 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_groupware.inc

index 49930b5e8783b04b1b03aecb019bceb8d35db7f9..e6ffd30abb86c2ba4f135b803c4822ce7a2b285a 100644 (file)
@@ -729,14 +729,25 @@ class groupware extends plugin
         }
         
         /*
-         *  
+         *  save alternateAddresses and forwarding. 
          */
-        if(isset($this->forwardingAddresses) && is_array($this->forwardingAddresses)){
+        if(isset($this->alternateAddresses) && is_array($this->alternateAddresses)){
                        $this->groupwareDao->save("alternateAddresses", $this->uid, $this->alternateAddresses);
         }
         if(isset($this->forwardingAddresses) && is_array($this->forwardingAddresses)){
                        $this->groupwareDao->save("forwardingAddresses", $this->uid, $this->forwardingAddresses);
         }
+        /*
+         * save the quota
+         */
+         if(true){
+               $quota = array( "warn_limit" => $this->mailBoxWarnLimitValue,
+                                                       "send_limit" => $this->mailBoxSendSizelimitValue,
+                                                       "hard_limit" => $this->mailBoxHardSizelimitValue,
+                                                       "hold" => $this->quotaSize,
+                                                       "usage" => $this->quotaUsage);
+               $this->groupwareDao->save("quotaSize", $this->uid, $quota);
+         }
       
     }
 
@@ -1067,7 +1078,7 @@ class groupware_dao{
                if($this->groupwarePluginRef->isFeatureEnabled("mailLocations")){
                        
                        $resultArr["mailLocations"] = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
-                       $resultArr["mailLocation"] = $this->rpcExec('gwAcctGetLocation',$this->uid);
+                       $resultArr["mailLocation"] = $this->groupwarePluginRef->rpcExec(array('gwAcctGetLocation',$uid));
                        
                }
                /*