From bee527d3f0a712980bff753b38a6cec0b415539c Mon Sep 17 00:00:00 2001 From: adv Date: Sun, 8 Dec 2019 22:12:56 +0100 Subject: #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. --- .../WebConsole/asistentes/includes/asistentes/formDeployImage.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'admin/WebConsole/asistentes') 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++){ -- cgit v1.2.3-18-g5258