Pārlūkot izejas kodu

add snapshot jobs to config lang

andre 4 gadi atpakaļ
vecāks
revīzija
16062161a0
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  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
         //hosting_id
         $this->formData['hosting_id']= $this->getWhmcsParamByKey('serviceid');
         $this->formData['hosting_id']= $this->getWhmcsParamByKey('serviceid');
+        //vm_id
+        $this->formData['vm_id'] = $this->model->id;
         //fill from data
         //fill from data
         $this->model->fill($this->formData)->save();
         $this->model->fill($this->formData)->save();
         sl('lang')->addReplacementConstant('name', $this->formData['name']);
         sl('lang')->addReplacementConstant('name', $this->formData['name']);