Browse Source

try to use console button

andre 4 years ago
parent
commit
880521f9a7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/UI/Vms/Pages/VmsDataTable.php

+ 3 - 1
app/UI/Vms/Pages/VmsDataTable.php

@@ -163,15 +163,17 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
         $dataProv->setDefaultSorting("name", 'ASC');
         $dataProv->setData($query);
         $this->setDataProvider($dataProv);
+        $this->$vmModel = VmModel::ofId($dataProv->getData()->getRecords()->first()->vmid)->firstOrFail();
 
         logModuleCall(
             'proxmoxCloud',
             __FUNCTION__,
-            $dataProv->getData()->getRecords(),
+            $this->$vmModel,
             'Debug',
             $dataProv->getData()->getRecords()->first()->vmid
         );
 
+
     }
 
     public function isViewFooter()