浏览代码

debug additional slider

andre 4 年之前
父节点
当前提交
2a02c07281
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 3 - 3
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -126,15 +126,15 @@ class GeneralSection extends BaseSection
         if($this->configuration()->isDetailsCombinedView()){
             //disk
             $field = new Range('disk', 0, $this->resourceManager->disk()->free());
-            $field->addValidator(new NumberValidator(0, $this->resourceManager->disk()->free(),true));
-            $field->setDefaultValue(0);
+            $field->addValidator(new NumberValidator($vm->getMasterHddSize(), $this->resourceManager->disk()->free(),true));
+            $field->setDefaultValue($vm->getMasterHddSize());
             $field->setDescription('description');
             $this->addField($field);
 
             logModuleCall(
                 'proxmoxCloud',
                 __FUNCTION__,
-                $vm->getMasterHardDisk(),
+                $field,
                 'Debug',
                 $vm->getMasterHddSize()
             );