andre 2 年 前
コミット
5d0bedf3c5

+ 9 - 8
app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

@@ -132,6 +132,15 @@ class EditAccountDataProvider extends BaseDataProvider
         } else {
             $this->data['quota'] = 0;
         }
+
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $account,
+            'Debug Data',
+            $this->data
+        );
+
         $lang = di('lang');
         $this->availableValues['status'] = [
             Kerio::ACC_STATUS_ACTIVE        => $lang->absoluteT('kerio','account','status','active'),
@@ -186,14 +195,6 @@ class EditAccountDataProvider extends BaseDataProvider
         $fields['departmentName'] = $this->formData['department'];
         $fields['profession'] = $this->formData['profession'];
 
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $account,
-            'Debug Error',
-            $fields
-        );
-
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
             $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));