diff options
author | irina <irinagomez@us.es> | 2016-04-26 12:52:09 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2016-04-26 12:52:09 +0000 |
commit | c20cf9c67fb766f96a0a424ffcb7e37d7ae7c096 (patch) | |
tree | d543ad0a070205b90309b0799ee2f5b80036f74f /sources | |
parent | 8712fd91b0510449a735000a65a56c015be97204 (diff) |
#738 Corrige la perdida del nombre de la imagen restaurada: el comando restaurar guarda en la BD el id del sistema operativo de la particiĆ³n, al reiniciar no encuentra cambios y permanece el nombre
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4903 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'sources')
-rw-r--r-- | sources/ogAdmServer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/ogAdmServer.cpp b/sources/ogAdmServer.cpp index 16e8ac3..8cfcd10 100644 --- a/sources/ogAdmServer.cpp +++ b/sources/ogAdmServer.cpp @@ -2434,8 +2434,9 @@ BOOLEAN actualizaRestauracionImagen(Database db, Table tbl, char* idi, snprintf(sqlstr, LONSQL, "UPDATE ordenadores_particiones" " SET idimagen=%s, idperfilsoft=%s, fechadespliegue=NOW()," - " revision=(SELECT revision FROM imagenes WHERE idimagen=%s)" - " WHERE idordenador=%s AND numdisk=%s AND numpar=%s", idi, ifs, idi, ido, dsk, par); + " revision=(SELECT revision FROM imagenes WHERE idimagen=%s)," + " idnombreso=(SELECT idnombreso FROM perfilessoft WHERE idperfilsoft=%s)" + " 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 errorLog(modulo, 21, FALSE); |