Browse Source

additional slider

andre 4 years ago
parent
commit
334e45e299
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/UI/VmUpdate/Sections/Qemu/GeneralSection.php

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

@@ -128,7 +128,7 @@ class GeneralSection extends BaseSection
             foreach ($vm->getHardDiskRepostiory()->fetch() as $disk){
                 if($disk->getName() == 'disk-0'){
                     $field = new Range('disk', (int) $disk->getSize(), $this->resourceManager->disk()->free());
-                    $field->addValidator(new DiskSizeValidator('disk',true));
+                    $field->addValidator(new NumberValidator((int) $disk->getSize(), $this->resourceManager->disk()->free(),true));
                     $field->setDefaultValue((int) $disk->getSize());
                     $field->setDescription('description');
                     $this->addField($field);