diff --git a/swad_changelog.h b/swad_changelog.h index a18abdc76..a727a01cb 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -172,13 +172,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.70.1 (2016-11-24)" +#define Log_PLATFORM_VERSION "SWAD 16.70.2 (2016-11-24)" #define CSS_FILE "swad16.69.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.70.2: Nov 24, 2016 Changes in layout of course stats. (207546 lines) Version 16.70.1: Nov 24, 2016 Fixed minor bug in titles of frames. (207545 lines) Version 16.70: Nov 24, 2016 Changes in permissions to view test results. (207545 lines) Version 16.69.1: Nov 24, 2016 Contextual help on messages. (207484 lines) diff --git a/swad_statistic.c b/swad_statistic.c index 96de47cf9..1e9d43828 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -419,6 +419,11 @@ void Sta_AskShowCrsHits (void) and preference about view photos *****/ Usr_GetAndUpdatePrefsAboutUsrList (); + /***** Start frame *****/ + sprintf (Gbl.Title,Txt_Statistics_of_visits_to_the_course_X, + Gbl.CurrentCrs.Crs.ShrtName); + Lay_StartRoundFrame (NULL,Gbl.Title,NULL,NULL); + /***** Show form to select the grupos *****/ Grp_ShowFormToSelectSeveralGroups (ActReqAccCrs); @@ -435,11 +440,6 @@ void Sta_AskShowCrsHits (void) /***** Get lists of selected users *****/ Usr_GetListsSelectedUsrsCods (); - /***** Start frame *****/ - sprintf (Gbl.Title,Txt_Statistics_of_visits_to_the_course_X, - Gbl.CurrentCrs.Crs.ShrtName); - Lay_StartRoundFrame (NULL,Gbl.Title,NULL,NULL); - /***** Form to select type of list used for select several users *****/ Usr_ShowFormsToSelectUsrListType (ActReqAccCrs); @@ -549,9 +549,6 @@ void Sta_AskShowCrsHits (void) /***** End form *****/ Act_FormEnd (); - /***** End frame *****/ - Lay_EndRoundFrame (); - /* Free memory used by list of selected users' codes */ Usr_FreeListsSelectedUsrsCods (); } @@ -559,11 +556,14 @@ void Sta_AskShowCrsHits (void) else // No teachers nor students found Lay_ShowAlert (Lay_WARNING,Txt_No_teachers_or_students_found); - /* Free memory used by the lists */ + /***** End frame *****/ + Lay_EndRoundFrame (); + + /***** Free memory used by the lists *****/ Usr_FreeUsrsList (Rol_TEACHER); Usr_FreeUsrsList (Rol_STUDENT); - /* Free memory for list of selected groups */ + /***** Free memory for list of selected groups *****/ Grp_FreeListCodSelectedGrps (); }