andre 4 лет назад
Родитель
Сommit
ea7c96bce0
1 измененных файлов с 2 добавлено и 2 удалено
  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 {