diff options
author | irina <irinagomez@us.es> | 2018-04-09 12:04:26 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2018-04-09 12:04:26 +0000 |
commit | 1d2bb00a8832887718da841be084361491d3dcd6 (patch) | |
tree | 757283b7dcd25aaad1889f7a650e6c54083aab65 | |
parent | e9edb521426fd2af99d146dd6f8ac0825e4971f6 (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
-rw-r--r-- | admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp b/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp index 6b6b7d72..7414c64c 100644 --- a/admin/Sources/Services/ogAdmServer/sources/ogAdmServer.cpp +++ b/admin/Sources/Services/ogAdmServer/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 |