Browse Source

set nameserver default values

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

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

@@ -171,8 +171,8 @@ class GeneralSection extends HalfPageSection
              $this->addField($field);
         }
         if($this->configuration()->isPermissionNameservers()){
+            $server = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->getWhmcsParamByKey('serverid'));
             //ns1
-            $server               = Server::select('id', 'nameserver1ip', 'nameserver2ip')->findOrFail($this->getWhmcsParamByKey('serverid'));
             $field = new Text('nameserver[0]');
             $field->addValidator(new NameserverValidator());
             $field->setDefaultValue(trim($server->nameserver1ip));