Przeglądaj źródła

suspendAccount - get userlist

andre 2 lat temu
rodzic
commit
89591fe43c
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      api/KerioWhmcs.php
  2. 1 1
      app/Http/Actions/SuspendAccount.php

+ 1 - 1
api/KerioWhmcs.php

@@ -130,7 +130,7 @@ class KerioWhmcs extends KerioConnectApi {
 				'fields' => $fields,
 				'orderBy' => array(array(
 					'columnName' => 'loginName',
-					'direction' => $this->constants['kerio_web_Asc']
+					'direction' => 'Asc'
 				))
 			),
 			'domainId' => $domainId

+ 1 - 1
app/Http/Actions/SuspendAccount.php

@@ -70,7 +70,7 @@ class SuspendAccount extends AddonController
             return "Error: Domain $domain not found";
         }
         try {
-            $users = $api->getUsers(['id', 'name'], $domainID);
+            $users = $api->getUsers(['id', 'loginName'], $domainID);
         } catch (KerioApiException $error) {
             logModuleCall(
                 'kerioEmail',