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

+ 3 - 1
app/UI/Client/Ressource/Providers/RessourceDataProvider.php

@@ -167,8 +167,10 @@ class RessourceDataProvider extends BaseDataProvider
             'Debug Error',
             $this->formData
         );
+
+        $isEnabled = $this->formData['status'] === Kerio::ACC_STATUS_ACTIVE ? true : false;
         try {
-            $result = $api->updateResouce(['isEnabled' => false], $this->request->get('massActions'));
+            $result = $api->updateResouce(['isEnabled' => $isEnabled], $this->request->get('massActions'));
         } catch (KerioApiException $error) {
             logModuleCall(
                 'kerioEmail',