Browse Source

fix msterDisk bug

andre 4 năm trước cách đây
mục cha
commit
e51b4529f4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/UI/VmUpdate/Sections/Qemu/AdditionalDiskSection.php

+ 3 - 0
app/UI/VmUpdate/Sections/Qemu/AdditionalDiskSection.php

@@ -83,6 +83,9 @@ class AdditionalDiskSection extends BaseSection implements ClientArea
             if($disk->isMaster()){
                 continue;
             }
+            if($disk->getName() == 'disk-0'){
+                continue;
+            }
             $this->customTplVars['additionalDisks'][]=
                 [   'id' => $disk->getId() ,
                     'size' => (int) $disk->getGb(),