فهرست منبع

debug additional slider

andre 4 سال پیش
والد
کامیت
2a02c07281
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

+ 3 - 3
app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

@@ -126,15 +126,15 @@ class GeneralSection extends BaseSection
         if($this->configuration()->isDetailsCombinedView()){
         if($this->configuration()->isDetailsCombinedView()){
             //disk
             //disk
             $field = new Range('disk', 0, $this->resourceManager->disk()->free());
             $field = new Range('disk', 0, $this->resourceManager->disk()->free());
-            $field->addValidator(new NumberValidator(0, $this->resourceManager->disk()->free(),true));
-            $field->setDefaultValue(0);
+            $field->addValidator(new NumberValidator($vm->getMasterHddSize(), $this->resourceManager->disk()->free(),true));
+            $field->setDefaultValue($vm->getMasterHddSize());
             $field->setDescription('description');
             $field->setDescription('description');
             $this->addField($field);
             $this->addField($field);
 
 
             logModuleCall(
             logModuleCall(
                 'proxmoxCloud',
                 'proxmoxCloud',
                 __FUNCTION__,
                 __FUNCTION__,
-                $vm->getMasterHardDisk(),
+                $field,
                 'Debug',
                 'Debug',
                 $vm->getMasterHddSize()
                 $vm->getMasterHddSize()
             );
             );