andre 2 лет назад
Родитель
Сommit
0ee6fb9e5a
1 измененных файлов с 7 добавлено и 13 удалено
  1. 7 13
      app/UI/Client/Ressource/Providers/RessourceDataProvider.php

+ 7 - 13
app/UI/Client/Ressource/Providers/RessourceDataProvider.php

@@ -88,14 +88,6 @@ class RessourceDataProvider extends BaseDataProvider
             Kerio::RES_TYPE_LOCATION        => $lang->absoluteT('kerio','ressource','type','location'),
             Kerio::RES_TYPE_EQUIPMENT       => $lang->absoluteT('kerio','ressource','type','equipment')
         ];
-
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $users,
-            'Debug Error',
-            $this->availableValues
-        );
     }
 
     public function create()
@@ -118,11 +110,13 @@ class RessourceDataProvider extends BaseDataProvider
             $value = in_array($field, $fieldToProtection) ? htmlentities($value) : $value;
         }
 
-        /**
-         * product manager allow to check product settings
-         */
-        $productManager = new ProductManager();
-        $productManager->loadByHostingId($hid);
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $this->formData,
+            'Debug Error',
+            $this
+        );
 
         return (new HtmlDataJsonResponse())->setMessageAndTranslate('ressourceHasBeenAdded')->setStatusSuccess();