Browse Source

bugfix max disk size

andre 4 years ago
parent
commit
ea7c96bce0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/UI/Disk/Forms/CreateForm.php

+ 2 - 2
app/UI/Disk/Forms/CreateForm.php

@@ -46,8 +46,8 @@ class CreateForm extends BaseForm implements ClientArea
         $this->initFields();
         $this->loadDataToForm();
         $rangeField = $this->getField('additionalDiskSize');
-        $rangeField->setMinValue(0);
-        $rangeField->setDefaultValue(0);
+        $rangeField->setMinValue($this->configuration()->serverDiskSize->min);
+        $rangeField->setDefaultValue($this->configuration()->serverDiskSize->min);
         if ($this->configuration()->serverDiskSize->max > ($this->resourceManager->disk()->free())) {
             $rangeField->setMaxValue($this->resourceManager->disk()->free());
         } else {