Browse Source

additional slider

andre 4 years ago
parent
commit
bc0da2deee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

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

@@ -127,7 +127,7 @@ class GeneralSection extends BaseSection
             //disk
             //disk
             $field = new Range('disk', $this->resourceManager->disk()->getUsed(), $this->resourceManager->disk()->free());
             $field = new Range('disk', $this->resourceManager->disk()->getUsed(), $this->resourceManager->disk()->free());
             $field->addValidator(new DiskSizeValidator('disk',true));
             $field->addValidator(new DiskSizeValidator('disk',true));
-            $field->setDefaultValue($this->configuration()->serverDiskSize->min);
+            $field->setDefaultValue($this->resourceManager->disk()->getUsed());
             $field->setDescription('description');
             $field->setDescription('description');
             $this->addField($field);
             $this->addField($field);
         }
         }