From 1c7d925de529f8e6cecf9b5bb89f211da5622d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 4 Feb 2015 19:18:09 +0100 Subject: [PATCH] Version 14.73.1 --- icon/iconset/awesome/action16x16/ins16x16.gif | Bin 159 -> 166 bytes swad_centre.c | 4 ++-- swad_changelog.h | 11 +++++++---- swad_config.h | 4 ++-- swad_degree.c | 2 +- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/icon/iconset/awesome/action16x16/ins16x16.gif b/icon/iconset/awesome/action16x16/ins16x16.gif index fbdb163c736e4200b3269defb3ce62172e4888d4..cb701d53241c7bac1e8b4a4a253652a0a9f1fd15 100644 GIT binary patch literal 166 zcmV;X09pS>Nk%w1VGsZi0J8u9KtMoFPEK50Ty1S_adC0~|Nnx5f{cuel$4a3nwq1d zqo}B;tgNiEv9i0nyUWYVA^8LW000F5EC2ui01yBW000D2u*gZPEhq$Zr5ivf5)PG# zsJInNkiJ0BNQ}ZTNrN|wO(g&YP#7Hkia`WYaU?p8li^V5Y)Y4u0|24rZo3nPU`#HL UXAgsV&1OFq<~VuQxkLZ}J8*bGK>z>% literal 159 zcmV;Q0AT+|Nk%w1VGsZi0J8u9KtMoBN=jK-S!QNtZ*OmmjEt3)m7boSq@<*^wY9ps zy8r+G#KgqQ%gfZ%)Y#bAA^8LW000XBEC2ui01yBW000C`aLGxlm8D!e02rI}2%Z-> zmlBk0QXOmz7?UB(+QJ-s@AHhwAO#`eF1%g|;T8ie N6u 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) {