Browse Source

add ressources

andre 2 years ago
parent
commit
a85a2924ba

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

@@ -77,13 +77,6 @@ class RessourceDataProvider extends BaseDataProvider
                 $this->availableValues['manager'][] = $user['loginName'] . '@' . $this->getWhmcsParamByKey('domain');
             }
         }
-        logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $users,
-            'Debug Error',
-            $domainID
-        );
 
         $lang = di('lang');
         $this->availableValues['status'] = [
@@ -96,6 +89,13 @@ class RessourceDataProvider extends BaseDataProvider
             Kerio::RES_TYPE_EQUIPMENT       => $lang->absoluteT('kerio','ressource','type','equipment')
         ];
 
+        logModuleCall(
+            'kerioEmail',
+            __FUNCTION__,
+            $users,
+            'Debug Error',
+            $this->availableValues
+        );
     }
 
     public function create()

+ 1 - 1
app/UI/Client/Ressource/Sections/GeneralSection.php

@@ -52,7 +52,7 @@ class GeneralSection extends FreeFieldsSection
 
         $this->generateDoubleSection([new Text('description'), new Select('type')]);
 
-        $this->generateDoubleSection([new Text('manager'), new Select('status')]);
+        $this->generateDoubleSection([new Select('manager'), new Select('status')]);
 
     }
 }