Browse Source

bugfix max value in range slider

andre 4 years ago
parent
commit
e9b6613c66
1 changed files with 9 additions and 0 deletions
  1. 9 0
      app/UI/VmCreate/Sections/Qemu/GeneralSection.php

+ 9 - 0
app/UI/VmCreate/Sections/Qemu/GeneralSection.php

@@ -125,6 +125,15 @@ class GeneralSection extends HalfPageSection
             $this->addField($field);
         }
         //memory
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this->resourceManager->memory()->free(),
+            'Debug',
+            $this->configuration()->serverMemory->min
+        );
+
         $field = new Range('memory', $this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free());
         $field->addValidator(new NumberValidator($this->resourceManager->memory()->getMin(), $this->resourceManager->memory()->free(),true));
         $field->setDefaultValue($this->configuration()->serverMemory->min);