andre 4 жил өмнө
parent
commit
9154405b12

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

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