Quellcode durchsuchen

try to get product values

andre vor 2 Jahren
Ursprung
Commit
d4042a0d90
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      app/Http/Actions/CreateAccount.php

+ 4 - 2
app/Http/Actions/CreateAccount.php

@@ -27,7 +27,6 @@ class CreateAccount extends AddonController
     use ExtensionsCheckerTrait;
     use HostingService;
     use WhmcsParams;
-    use ProductManagerHandler;
     
     /**
      * create domain in kerio
@@ -72,6 +71,9 @@ class CreateAccount extends AddonController
      */
     protected function kerioRunService($params = null)
     {
+        $productManager = new ProductManager();
+        $productManager->loadById($params['pid']);
+
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
@@ -83,7 +85,7 @@ class CreateAccount extends AddonController
                 __FUNCTION__,
                 $params,
                 'Debug ID',
-                $this
+                $productManager->get('acc_base')
             );
         } catch (KerioApiException $error) {