Browse Source

try to bugfix osTemplate name in client view

andre 4 years ago
parent
commit
03b0015c82

+ 2 - 0
app/UI/Reinstall/Providers/TemplateInstallProvider.php

@@ -119,6 +119,8 @@ class TemplateInstallProvider extends BaseDataProvider implements ClientArea, Ad
         elseif($this->configuration()->isQemu() && $this->configuration()->getCiuser()){
             $this->hosting()->update(['username' =>$this->configuration()->getCiuser() ]);
         }
+        //update osTemplate in config
+        $this->hosting()->update(['customconfigoption[osTemplate]' => $this->formData['id']]);
         $arguments = [
             'hostingId'  => $this->getWhmcsParamByKey('serviceid'),
             "osTemplate" => $this->formData['id'],

+ 0 - 2
templates/client/default/controlers/main.tpl

@@ -170,12 +170,10 @@
                                                     <td align='left'>IP Adresse</td>
                                                     <td align="left">{$dedicatedip}</td>
                                                 </tr>
-{* bug, VM Template Change are ignored by changepackeage & reinstall
                                                 <tr>
                                                     <td align='left'>VM Template</td>
                                                     <td align="left">{$moduleParams.configoptions['VM Template']}</td>
                                                 </tr>
-*}                                            
                                                 <tr>
                                                     <td align='left'>CPU Cores</td>
                                                     <td align="left">{$moduleParams.configoptions['The number of cores per socket']}</td>