summaryrefslogtreecommitdiffstats
path: root/sources
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2018-04-09 12:04:26 +0000
committeririna <irinagomez@us.es>2018-04-09 12:04:26 +0000
commit5c9cb183c52f062aa50cc3cc1410a79967e665c0 (patch)
tree166fa00e846e174458ab6da00f6003ecf9e2261d /sources
parent6ee505f3dc8919bc99ef4454641c7cc85f5ac1a2 (diff)
#580 Se resuelve errata en ogAdmServer por la que al restaurar una imagen sin perfil de software asociado se cae el servicio.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5712 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources')
-rw-r--r--sources/ogAdmServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp
index 6b6b7d7..7414c64 100644
--- a/sources/ogAdmServer.cpp
+++ b/sources/ogAdmServer.cpp
@@ -2493,7 +2493,7 @@ BOOLEAN actualizaRestauracionImagen(Database db, Table tbl, char* idi,
"UPDATE ordenadores_particiones"
" SET idimagen=%s, idperfilsoft=%s, fechadespliegue=NOW(),"
" revision=(SELECT revision FROM imagenes WHERE idimagen=%s),"
- " idnombreso=(SELECT idnombreso FROM perfilessoft WHERE idperfilsoft=%s)"
+ " idnombreso=IFNULL((SELECT idnombreso FROM perfilessoft WHERE idperfilsoft=%s),0)"
" WHERE idordenador=%s AND numdisk=%s AND numpar=%s", idi, ifs, idi, ifs, ido, dsk, par);
if (!db.Execute(sqlstr, tbl)) { // Error al recuperar los datos