Explorar o código

test better detail combined view

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
8bdb086066
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/UI/VmUpdate/Sections/Qemu/AdditionalDiskSection.php

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

@@ -31,7 +31,7 @@ class AdditionalDiskSection extends BaseSection implements ClientArea
         $rangeField = $this->getField('additionalDiskSize');
         $rangeField->setMinValue($diskSize);
         $rangeField->setDefaultValue($diskSize);
-        if ($this->configuration()->serverDiskSize->max > ($this->resourceManager->disk()->free() + $diskSize)) {
+        if ($this->configuration()->serverDiskSize->max > ($this->resourceManager->disk()->free())) {
             $rangeField->setMaxValue($this->resourceManager->disk()->free() + $diskSize);
         } else {
             $rangeField->setMaxValue($this->configuration()->serverDiskSize->max);