Explorar el Código

bugfix max disk size

andre hace 4 años
padre
commit
b509537579
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/UI/Disk/Forms/CreateForm.php

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

@@ -49,9 +49,9 @@ class CreateForm extends BaseForm implements ClientArea
         $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());
+            $rangeField->setMaxValue(125);
         } else {
-            $rangeField->setMaxValue($this->configuration()->serverDiskSize->max);
+            $rangeField->setMaxValue(215);
         }
     }