Procházet zdrojové kódy

set nameserver default values

andre před 4 roky
rodič
revize
b9866940c2

+ 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));