Version 16.59.2

This commit is contained in:
Antonio Cañas Vargas 2016-11-14 10:30:33 +01:00
parent 0e6ee3ee73
commit 916bdc67f2
3 changed files with 10 additions and 7 deletions

View File

@ -145,7 +145,6 @@
// TODO: Writing a message to several recipients: include message to indicate that list of nicknames must be comma separated
// TODO: When requesting inscription, I can not click in the photo of my record. Change the form?
// TODO: Cuando se crea una cuenta nueva, debería ponerse a 0 las estadísticas del perfil del usuario
// TODO: Import ID, e-mail, Surname1, Surname2, Name from CSV, suggested by Javier Melero
// TODO: Remove columns DegCod,CrsCod from database table surveys
@ -156,13 +155,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.59 (2016-11-14)"
#define Log_PLATFORM_VERSION "SWAD 16.59.2 (2016-11-14)"
#define CSS_FILE "swad16.59.css"
#define JS_FILE "swad16.46.1.js"
// 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 sql/swad*.sql | tail -1
/*
Version 16.59.2: Nov 14, 2016 Fix bug in user's usage report. (207077 lines)
Version 16.59.1: Nov 14, 2016 Fix bug in deletion of a notice, reported by Javier Fernández Baldomero and others. (207076 lines)
Version 16.59: Nov 14, 2016 Changes in layout of contextual help icon.
Changes in CSS. (207075 lines)
Version 16.58: Nov 14, 2016 Code refactoring related to layout of frames and tables. (207062 lines)

View File

@ -280,11 +280,13 @@ void Not_RequestRemNotice (void)
/***** Get the code of the notice to remove *****/
NotCod = Not_GetParamNotCod ();
/***** Form to ask for confirmation to remove this notice *****/
Act_FormStart (ActRemNot);
Not_PutHiddenParamNotCod (NotCod);
/***** Ask for confirmation to remove this notice *****/
Lay_ShowAlert (Lay_WARNING,Txt_Do_you_really_want_to_remove_the_following_notice);
Not_GetDataAndShowNotice (NotCod);
/***** Form to remove this notice *****/
Act_FormStart (ActRemNot);
Not_PutHiddenParamNotCod (NotCod);
Lay_PutRemoveButton (Txt_Remove);
Act_FormEnd ();

View File

@ -1192,7 +1192,7 @@ static void Rep_WriteRowCrsData (long CrsCod,Rol_Role_t Role,
static void Rep_ShowMyHitsPerYear (bool AnyCourse,long CrsCod,Rol_Role_t Role,
struct Rep_Report *Report)
{
char Query[512];
char Query[1024];
char SubQueryCrs[128];
char SubQueryRol[128];
MYSQL_RES *mysql_res;
@ -1266,7 +1266,7 @@ static void Rep_ShowMyHitsPerYear (bool AnyCourse,long CrsCod,Rol_Role_t Role,
fprintf (Gbl.F.Rep,"%04u ",Year);
/* Draw bar proportional to number of hits */
Rep_DrawBarNumHits (Year == LastYear ? Report->Hits.Num :
Rep_DrawBarNumHits (Year == ReadYear ? Report->Hits.Num :
0,
Report->Hits.Max,Rep_MAX_BAR_WIDTH);
fprintf (Gbl.F.Rep,"<br />");