Browse Source

debug snapshot jobs to config

andre 4 years ago
parent
commit
851487dfe5
1 changed files with 4 additions and 3 deletions
  1. 4 3
      app/UI/Snapshot/Providers/JobProvider.php

+ 4 - 3
app/UI/Snapshot/Providers/JobProvider.php

@@ -79,14 +79,15 @@ class JobProvider  extends BaseModelDataProvider implements ClientArea
         //hosting_id
         //hosting_id
         $this->formData['hosting_id']= $this->getWhmcsParamByKey('serviceid');
         $this->formData['hosting_id']= $this->getWhmcsParamByKey('serviceid');
         //vm_id
         //vm_id
-        $this->formData['vm_id'] = $this->model->id;
+        $this->model->vm_id = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVmModel()->id;
+        $this->formData['vm_id'] = $this->model->vm_id;
 
 
         logModuleCall(
         logModuleCall(
             'proxmoxCloud',
             'proxmoxCloud',
             __FUNCTION__,
             __FUNCTION__,
-            $this->formData,
+            $this->formData['vm_id'],
             'Debug',
             'Debug',
-            $this->model
+            $this->model->vm_id
         );
         );
 
 
         //fill from data
         //fill from data