Explorar el Código

debug mail forwarding

andre hace 1 año
padre
commit
00041d48b5

+ 5 - 5
app/Libs/Zimbra/Components/Api/Soap/Services/Update/UpdateAccount.php

@@ -72,12 +72,12 @@ class UpdateAccount extends CreateAccount
         $account->setAttr(Account::ATTR_DISPLAY_NAME, $this->formData['display_name']);
         if ($this->formData['forward'] == 'on') {
             $account->setAttr(Account::ATTR_MAIL_FORWARD, $this->formData['zimbraPrefMailForwardingAddress']);
-            $account->setAttr(Account::ATTR_DISABLE_LOCAL, true);
-            $account->setAttr(Account::ATTR_ENABLE_FORWARD, true);
+            $account->setAttr(Account::ATTR_DISABLE_LOCAL, 'TRUE');
+            $account->setAttr(Account::ATTR_ENABLE_FORWARD, 'TRUE');
         } else {
-            $account->setAttr(Account::ATTR_MAIL_FORWARD, null);
-            $account->setAttr(Account::ATTR_DISABLE_LOCAL, false);
-            $account->setAttr(Account::ATTR_ENABLE_FORWARD, false);
+            $account->setAttr(Account::ATTR_MAIL_FORWARD, NULL);
+            $account->setAttr(Account::ATTR_DISABLE_LOCAL, 'FALSE');
+            $account->setAttr(Account::ATTR_ENABLE_FORWARD, 'FALSE');
         }
 
         return $account;

+ 5 - 5
app/Libs/Zimbra/Components/Api/Soap/Services/Update/UpdateAccountCosQuota.php

@@ -76,12 +76,12 @@ class UpdateAccountCosQuota extends CreateAccountCosQuota
         $account->setAttr(Account::ATTR_DISPLAY_NAME, $this->formData['display_name']);
         if ($this->formData['forward'] == 'on') {
             $account->setAttr(Account::ATTR_MAIL_FORWARD, $this->formData['zimbraPrefMailForwardingAddress']);
-            $account->setAttr(Account::ATTR_DISABLE_LOCAL, true);
-            $account->setAttr(Account::ATTR_ENABLE_FORWARD, true);
+            $account->setAttr(Account::ATTR_DISABLE_LOCAL, 'TRUE');
+            $account->setAttr(Account::ATTR_ENABLE_FORWARD, 'TRUE');
         } else {
-            $account->setAttr(Account::ATTR_MAIL_FORWARD, null);
-            $account->setAttr(Account::ATTR_DISABLE_LOCAL, false);
-            $account->setAttr(Account::ATTR_ENABLE_FORWARD, false);
+            $account->setAttr(Account::ATTR_MAIL_FORWARD, NULL);
+            $account->setAttr(Account::ATTR_DISABLE_LOCAL, 'FALSE');
+            $account->setAttr(Account::ATTR_ENABLE_FORWARD, 'FALSE');
         }
 
         /* @var $cos ClassOfService*/