Parcourir la source

bugfix max value in range slider

andre il y a 4 ans
Parent
commit
e9b6613c66
1 fichiers modifiés avec 9 ajouts et 0 suppressions
  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);