소스 검색

try to bugfix osTemplate name in client view

andre 4 년 전
부모
커밋
03b0015c82
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 0
      app/UI/Reinstall/Providers/TemplateInstallProvider.php
  2. 0 2
      templates/client/default/controlers/main.tpl

+ 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()){
         elseif($this->configuration()->isQemu() && $this->configuration()->getCiuser()){
             $this->hosting()->update(['username' =>$this->configuration()->getCiuser() ]);
             $this->hosting()->update(['username' =>$this->configuration()->getCiuser() ]);
         }
         }
+        //update osTemplate in config
+        $this->hosting()->update(['customconfigoption[osTemplate]' => $this->formData['id']]);
         $arguments = [
         $arguments = [
             'hostingId'  => $this->getWhmcsParamByKey('serviceid'),
             'hostingId'  => $this->getWhmcsParamByKey('serviceid'),
             "osTemplate" => $this->formData['id'],
             "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'>IP Adresse</td>
                                                     <td align="left">{$dedicatedip}</td>
                                                     <td align="left">{$dedicatedip}</td>
                                                 </tr>
                                                 </tr>
-{* bug, VM Template Change are ignored by changepackeage & reinstall
                                                 <tr>
                                                 <tr>
                                                     <td align='left'>VM Template</td>
                                                     <td align='left'>VM Template</td>
                                                     <td align="left">{$moduleParams.configoptions['VM Template']}</td>
                                                     <td align="left">{$moduleParams.configoptions['VM Template']}</td>
                                                 </tr>
                                                 </tr>
-*}                                            
                                                 <tr>
                                                 <tr>
                                                     <td align='left'>CPU Cores</td>
                                                     <td align='left'>CPU Cores</td>
                                                     <td align="left">{$moduleParams.configoptions['The number of cores per socket']}</td>
                                                     <td align="left">{$moduleParams.configoptions['The number of cores per socket']}</td>