|
|
@@ -118,6 +118,8 @@ class AddListDataProvider extends BaseDataProvider
|
|
|
|
|
|
public function create()
|
|
|
{
|
|
|
+
|
|
|
+ $myFormData = $this->formData;
|
|
|
/**
|
|
|
*
|
|
|
* provided aliases
|
|
|
@@ -173,28 +175,13 @@ class AddListDataProvider extends BaseDataProvider
|
|
|
*/
|
|
|
$hid = $this->request->get('id');
|
|
|
|
|
|
- /**
|
|
|
- * load kerio manager by hosting id
|
|
|
- */
|
|
|
- $service = (new KerioManager())
|
|
|
- ->getApiByHosting($hid)
|
|
|
- ->soap
|
|
|
- ->service()
|
|
|
- ->createDistributionList()
|
|
|
- ->setFormData($this->formData)
|
|
|
- ;
|
|
|
-
|
|
|
- /**
|
|
|
- * load product configuration
|
|
|
- */
|
|
|
- $productManager = new ProductManager();
|
|
|
- $productManager->loadByHostingId($hid);
|
|
|
- $service->setProductManager($productManager);
|
|
|
- $result= $service->run();
|
|
|
- if(!$result)
|
|
|
- {
|
|
|
- return (new HtmlDataJsonResponse())->setMessageAndTranslate($service->getError())->setStatusError();
|
|
|
- }
|
|
|
+ logModuleCall(
|
|
|
+ 'kerioEmail',
|
|
|
+ __FUNCTION__,
|
|
|
+ $myFormData,
|
|
|
+ 'Debug add ML',
|
|
|
+ $this->formData
|
|
|
+ );
|
|
|
|
|
|
return (new HtmlDataJsonResponse())->setMessageAndTranslate('distributionListHasBeenAdded')->setStatusSuccess();
|
|
|
|