瀏覽代碼

try to sort template list

andre 4 年之前
父節點
當前提交
70b2d043cd
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      app/UI/VmCreate/Fields/OsTemplateSelect.php

+ 1 - 9
app/UI/VmCreate/Fields/OsTemplateSelect.php

@@ -73,15 +73,7 @@ class OsTemplateSelect extends Select implements ClientArea
 
         $VmList = $clusterResurces->fetchWithUniqueNames($defaultNode);
         usort($VmList, function($a, $b) {return strcmp($a->getName(), $b->getName());});
-        logModuleCall(
-            'proxmoxCloud',
-            __FUNCTION__,
-            $clusterResurces->fetchWithUniqueNames($defaultNode),
-            'Debug',
-            $VmList
-        );
-        
-    foreach ($clusterResurces->fetchWithUniqueNames($defaultNode) as $entity)
+        foreach ($VmList as $entity)
         {
             if ($entity->isCustom() && !$entity->matchName($this->getWhmcsParamByKey("serviceid")))
             {