Browse Source

debug additional slider

andre 4 years ago
parent
commit
2a02c07281
1 changed files with 3 additions and 3 deletions
  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()
             );