diff --git a/icon/iconset/awesome/action16x16/ins16x16.gif b/icon/iconset/awesome/action16x16/ins16x16.gif index fbdb163c7..cb701d532 100644 Binary files a/icon/iconset/awesome/action16x16/ins16x16.gif and b/icon/iconset/awesome/action16x16/ins16x16.gif differ diff --git a/swad_centre.c b/swad_centre.c index 66a707ef2..95d4ec4cd 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -958,13 +958,13 @@ long Ctr_GetInsCodOfCentreByCod (long CtrCod) if (CtrCod > 0) { /***** Get the institution code of a centre from database *****/ - sprintf (Query,"SELECT InsCod FROM centres WHERE CtrCod ='%ld'", + sprintf (Query,"SELECT InsCod FROM centres WHERE CtrCod='%ld'", CtrCod); if (DB_QuerySELECT (Query,&mysql_res,"can not get the institution of a centre") == 1) { /***** Get the institution code of this centre *****/ row = mysql_fetch_row (mysql_res); - CtrCod = Str_ConvertStrCodToLongCod (row[0]); + InsCod = Str_ConvertStrCodToLongCod (row[0]); } /***** Free structure that stores the query result *****/ diff --git a/swad_changelog.h b/swad_changelog.h index 005b223be..045850e20 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -31,19 +31,22 @@ // TODO: When notifications are marked as seen, do it in a priori function // TODO: Use the library http://fukuchi.org/works/qrencode/index.html.en instead Google QR // TODO: [Ceferino Bustos Valdivia]: -// Enhorabuena por esta nueva aplicación. La he utilizado con los códigos QR y va muy bien. -// Me genera las listas de alumnos y es bastante rápida la lectura del código QR. -// Sería completa esta aplicación, si la asistencia se incluyera, automáticamente, en el apartado de evaluación de cada alumno. De esta forma podríamos ver sus trabajos y asistencias de forma personalizada. +// Enhorabuena por esta nueva aplicación. La he utilizado con los códigos QR y va muy bien. +// Me genera las listas de alumnos y es bastante rápida la lectura del código QR. +// Sería completa esta aplicación, si la asistencia se incluyera, automáticamente, en el apartado de evaluación de cada alumno. De esta forma podríamos ver sus trabajos y asistencias de forma personalizada. +// TODO: OpenSWAD.org: ¿Qué debería tener una buena gestión de grupos? Es para tomar ideas ;) +// José Raúl Canay @raulcanay: por ejemplo, que puedas sacar un listado exportable de en qué grupos está una persona de quienes están en un grupo. /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.73 (2015/02/03)" +#define Log_PLATFORM_VERSION "SWAD 14.73.1 (2015/02/04)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h | tail -1 /* + Version 14.73.1: Feb 04, 2015 Fixed bug in logo of centre. (177012 lines) Version 14.73: Feb 03, 2015 New options to remove institution, centre and degree icons. (177007 lines) 3 changes necessary in database: INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1341','es','N','Eliminar logo de institución'); diff --git a/swad_config.h b/swad_config.h index 026614fa1..406a14d79 100644 --- a/swad_config.h +++ b/swad_config.h @@ -28,9 +28,9 @@ /** Uncomment one of the following installations of SWAD or create your own **/ /*****************************************************************************/ -#define LOCALHOST_UBUNTU // Comment this line if not applicable +//#define LOCALHOST_UBUNTU // Comment this line if not applicable //#define OPENSWAD_ORG // Comment this line if not applicable -//#define SWAD_UGR_ES // Comment this line if not applicable +#define SWAD_UGR_ES // Comment this line if not applicable //#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable /*****************************************************************************/ diff --git a/swad_degree.c b/swad_degree.c index 5d0787f1a..ac9ca304a 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -3098,7 +3098,7 @@ long Deg_GetInsCodOfDegreeByCod (long DegCod) { /***** Get the institution code of a degree from database *****/ sprintf (Query,"SELECT centres.InsCod FROM degrees,centres" - " WHERE degrees.DegCod ='%ld' AND degrees.CtrCod=centres.CtrCod", + " WHERE degrees.DegCod='%ld' AND degrees.CtrCod=centres.CtrCod", DegCod); if (DB_QuerySELECT (Query,&mysql_res,"can not get the institution of a degree") == 1) {