summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/CrearImagen.php
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-04-22 14:37:49 +0200
committerIrina Gómez <irinagomez@us.es>2019-04-22 14:37:49 +0200
commit2ee6e407882d650915634939ed4d8e587f9b038b (patch)
treebc42316c572ce4ea93d05147c31e42150bb42ba5 /admin/WebConsole/comandos/CrearImagen.php
parent58a6159ff02b4216d1d0e65f5f3ceff27b6f2397 (diff)
#834 Create image in console: Fixs a error when there are duplicate computers. It only shows monolithic images.
Diffstat (limited to 'admin/WebConsole/comandos/CrearImagen.php')
-rw-r--r--admin/WebConsole/comandos/CrearImagen.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/WebConsole/comandos/CrearImagen.php b/admin/WebConsole/comandos/CrearImagen.php
index 532a589a..1944872a 100644
--- a/admin/WebConsole/comandos/CrearImagen.php
+++ b/admin/WebConsole/comandos/CrearImagen.php
@@ -122,7 +122,8 @@ function HTMLSELECT_imagenes($cmd,$idrepositorio,$idperfilsoft,$disk,$particion,
$cmd->texto="SELECT DISTINCT imagenes.idimagen,imagenes.descripcion,imagenes.nombreca,
imagenes.idperfilsoft, repositorios.nombrerepositorio, repositorios.ip
FROM imagenes INNER JOIN repositorios USING (idrepositorio)
- WHERE repositorios.idrepositorio = (SELECT idrepositorio FROM ordenadores WHERE ordenadores.ip='".$masterip."')
+ 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";
$rs=new Recordset;