From 83bf2eb4fbdd93a02cd96a5114fd37777ccc510d Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Mon, 13 Apr 2020 09:28:43 +0200 Subject: #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. --- admin/WebConsole/comandos/CrearImagen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/WebConsole') 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; -- cgit v1.2.3-18-g5258