andre 4 лет назад
Родитель
Сommit
df108280e0

+ 2 - 0
app/UI/VmUpdate/Providers/VmUpdateProvider.php

@@ -52,6 +52,8 @@ class VmUpdateProvider extends VmCreateProvider
         $this->data =  $this->vmModel->toArray();
         $vm = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVm();
         $config = $vm->config();
+        $this->data['ciuser'] = $config['ciuser'];
+        $this->data['cipassword'] = $config['cipassword'];
         $this->data['description'] = html_entity_decode($config['description']);
         $this->data['searchdomain'] = $config['searchdomain'];
         $ns = explode(" ",$config['nameserver']);

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

@@ -61,7 +61,6 @@ class GeneralSection extends BaseSection
         if($this->configuration()->isPermissionUsername()){
             $field = new Text('ciuser');
             $field->addValidator(new UserValidator());
-            $field->setDefaultValue($this->configuration()->getCiuser());
             $field->setDescription('description');
             $this->addField($field);
         }