andre vor 2 Jahren
Ursprung
Commit
67254cf3ba
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      app/UI/Client/EmailAccount/Pages/Accounts.php

+ 4 - 3
app/UI/Client/EmailAccount/Pages/Accounts.php

@@ -5,6 +5,7 @@ namespace ThurData\Servers\KerioEmail\App\UI\Client\EmailAccount\Pages;
 use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Helpers\AccountHelper;
 use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Fields\EnabledField;
 use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
+use ThurData\Servers\KerioEmail\Core\Models\Whmcs\Hosting;
 use ThurData\Servers\KerioEmail\App\UI\Client\EmailAccount\Buttons\AddAccountButton;
 use ThurData\Servers\KerioEmail\App\UI\Client\EmailAccount\Buttons\ChangePasswordButton;
 use ThurData\Servers\KerioEmail\App\UI\Client\EmailAccount\Buttons\ChangeStatusButton;
@@ -100,13 +101,13 @@ class Accounts extends DataTable implements ClientArea
      */
     public function initContent()
     {
-        $productManager = new ProductManager();
-        $productManager->loadByHostingId($this->getRequestValue('id'));
+        $hid = $this->getRequestValue('id');
+        $hosting = Hosting::where('id', $hid)->first();
 
         logModuleCall(
             'kerioEmail',
             __FUNCTION__,
-            $params,
+            $hosting,
             'Debug Error',
             $this->getRequestValue('id')
         );