Browse Source

add snapshot jobs to config lang

andre 4 years ago
parent
commit
16062161a0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/UI/Snapshot/Providers/JobProvider.php

+ 2 - 0
app/UI/Snapshot/Providers/JobProvider.php

@@ -78,6 +78,8 @@ class JobProvider  extends BaseModelDataProvider implements ClientArea
         }
         //hosting_id
         $this->formData['hosting_id']= $this->getWhmcsParamByKey('serviceid');
+        //vm_id
+        $this->formData['vm_id'] = $this->model->id;
         //fill from data
         $this->model->fill($this->formData)->save();
         sl('lang')->addReplacementConstant('name', $this->formData['name']);