|
|
@@ -85,13 +85,13 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
}
|
|
|
if (isAdmin() || $this->configuration()->isPermissionNovnc()){
|
|
|
//console
|
|
|
- $query = VmModel::select("vmid")
|
|
|
+ $query = VmModel::select("id")
|
|
|
->ofHostingId($this->getWhmcsParamByKey('serviceid'))
|
|
|
->notTemplate()
|
|
|
->getQuery();
|
|
|
$dataProv = new QueryDataProvider();
|
|
|
$dataProv->setData($query);
|
|
|
- $vmid = $dataProv->getData()->getRecords()->first()->vmid;
|
|
|
+ $vmid = $dataProv->getData()->getRecords()->first()->id;
|
|
|
$consoleUrl = BuildUrl::isClientArea() ? BuildUrl::getUrl('console', 'novnc', ['vm'=> $vmid]) : BuildUrl::getSelfUrl().'&mg-action=novncs&vm='.$vmid;
|
|
|
$this->addActionButton(new ConsoleButton());
|
|
|
$this->actionButtons['consoleButton']->setConsoleUrl($consoleUrl);
|