diff options
author | Irina Gómez <irinagomez@us.es> | 2020-04-13 09:28:43 +0200 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2020-04-13 09:28:43 +0200 |
commit | 83bf2eb4fbdd93a02cd96a5114fd37777ccc510d (patch) | |
tree | 4bf8063e11231d964871c154773de216bc99479e | |
parent | db2e57f75acb73952f1227d071e81713423ef811 (diff) |
#959 #679 CreateImage command in console : Fix error in SQL request, only showed images from repository assigned to computer. Now show all images in organization unit.
-rw-r--r-- | admin/WebConsole/comandos/CrearImagen.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/comandos/CrearImagen.php b/admin/WebConsole/comandos/CrearImagen.php index 1944872a..fe9412ad 100644 --- a/admin/WebConsole/comandos/CrearImagen.php +++ b/admin/WebConsole/comandos/CrearImagen.php @@ -123,8 +123,8 @@ function HTMLSELECT_imagenes($cmd,$idrepositorio,$idperfilsoft,$disk,$particion, imagenes.idperfilsoft, repositorios.nombrerepositorio, repositorios.ip FROM imagenes INNER JOIN repositorios USING (idrepositorio) WHERE imagenes.tipo=".$IMAGENES_MONOLITICAS." - AND repositorios.idrepositorio IN (SELECT idrepositorio FROM ordenadores WHERE ordenadores.ip='".$masterip."') - OR repositorios.ip='".$masterip."' ORDER BY imagenes.descripcion"; + AND repositorios.idcentro=".$_SESSION["widcentro"]." + ORDER BY imagenes.descripcion"; $rs=new Recordset; $rs->Comando=&$cmd; |