andre пре 2 година
родитељ
комит
d4042a0d90
1 измењених фајлова са 4 додато и 2 уклоњено
  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 ExtensionsCheckerTrait;
     use HostingService;
     use HostingService;
     use WhmcsParams;
     use WhmcsParams;
-    use ProductManagerHandler;
     
     
     /**
     /**
      * create domain in kerio
      * create domain in kerio
@@ -72,6 +71,9 @@ class CreateAccount extends AddonController
      */
      */
     protected function kerioRunService($params = null)
     protected function kerioRunService($params = null)
     {
     {
+        $productManager = new ProductManager();
+        $productManager->loadById($params['pid']);
+
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         $api = new KerioWhmcs('whmcsKerioEmail', 'Thurdata', '1.0');
         try {
         try {
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
             $api->login($params['serverhostname'], $params['serverusername'], $params['serverpassword']);
@@ -83,7 +85,7 @@ class CreateAccount extends AddonController
                 __FUNCTION__,
                 __FUNCTION__,
                 $params,
                 $params,
                 'Debug ID',
                 'Debug ID',
-                $this
+                $productManager->get('acc_base')
             );
             );
         } catch (KerioApiException $error) {
         } catch (KerioApiException $error) {