diff options
author | adv <adv@uma.es> | 2019-12-08 22:12:56 +0100 |
---|---|---|
committer | adv <adv@uma.es> | 2019-12-09 19:50:36 +0100 |
commit | bee527d3f0a712980bff753b38a6cec0b415539c (patch) | |
tree | 14182fe067b42ae6c9edddf89f1da8dcc18a6d40 /admin | |
parent | b3c07685398bd1fe2a22e3222304b8e6a98c30f0 (diff) |
#936 form deploy web shows duplicate partitions
The multidimensional array that is generated from the configurations doubled the entries.
The multidimensional array is changed to a simple array where the index is the string composed of disk id part id
The select "idpartition" form will have the array index as text.
Diffstat (limited to 'admin')
-rw-r--r-- | admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php b/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php index c75c9abd..4cbe1916 100644 --- a/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php +++ b/admin/WebConsole/asistentes/includes/asistentes/formDeployImage.php @@ -7,8 +7,7 @@ $diskPartIndex = 0; // Recorremos todas las configuraciones y vamos creando un array con disco - particion for($cfgIndex = 0; $cfgIndex < $conKeys; $cfgIndex++){ if($tbKeys[$cfgIndex]["numpar"] != 0 && $tbKeys[$cfgIndex]["clonable"] == 1){ - $disksPartitions[$diskPartIndex]["text"] = "Disco ".$tbKeys[$cfgIndex]["numdisk"]." - Part ".$tbKeys[$cfgIndex]["numpar"]; - $disksPartitions[$diskPartIndex]["value"] = $tbKeys[$cfgIndex]["numdisk"].";".$tbKeys[$cfgIndex]["numpar"].";".$tbKeys[$cfgIndex]["tipopar"]; + $disksPartitions["Disco " . $tbKeys[$cfgIndex]["numdisk"] . " - Part " .$tbKeys[$cfgIndex]["numpar"] ] = $tbKeys[$cfgIndex]["numdisk"].";".$tbKeys[$cfgIndex]["numpar"].";".$tbKeys[$cfgIndex]["tipopar"]; $diskPartIndex++; } } @@ -27,8 +26,8 @@ for($cfgIndex = 0; $cfgIndex < $conKeys; $cfgIndex++){ <?php echo $TbMsg["WDI20"] ?> <select name="idparticion" id="idparticion" style="width:220px"> <?php - foreach($disksPartitions as $diskPartition){ - echo "<option value='".$diskPartition["value"]."'>".$diskPartition["text"]." </option>"; + foreach($disksPartitions as $key => $value){ + echo "<option value='".$value."'>".$key." </option>"; } ?> </select> |