ソースを参照

add chat control

andre 2 ヶ月 前
コミット
5ce2f59e29

+ 6 - 6
app/UI/Client/Setting/Providers/EditSettingDataProvider.php

@@ -166,19 +166,19 @@ class EditSettingDataProvider extends BaseDataProvider
 
         $maildomain = $this->actionElementId;
         $domain = $this->getWhmcsParamByKey('domain');
-        if ($maildomain == $domain) {
-            $this->formData['dkimsigenabled'] == 'on' ? $attr['isDkimEnabled'] = true : $attr['isDkimEnabled'] = false;
-            $this->formData['tfaenabled'] == 'on' ? $attr['twoFAEnabled'] = true : $attr['twoFAEnabled'] = false;
-            $this->formData['chatenabled'] == 'on' ? $attr['isInstantMessagingEnabled'] = true : $attr['isInstantMessagingEnabled'] = false;
 
 		logModuleCall(
 			'kerioEmail',
 			__FUNCTION__,
-			$this->formData['domainid'],
+			$maildomain,
 			'Debug API',
-			$attr
+			$domain
 		);
 
+        if ($maildomain == $domain) {
+            $this->formData['dkimsigenabled'] == 'on' ? $attr['isDkimEnabled'] = true : $attr['isDkimEnabled'] = false;
+            $this->formData['tfaenabled'] == 'on' ? $attr['twoFAEnabled'] = true : $attr['twoFAEnabled'] = false;
+            $this->formData['chatenabled'] == 'on' ? $attr['isInstantMessagingEnabled'] = true : $attr['isInstantMessagingEnabled'] = false;
             $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
             try {
                 $api->login($this->getWhmcsParamByKey('serverhostname'), $this->getWhmcsParamByKey('serverusername'), $this->getWhmcsParamByKey('serverpassword'));