diff --git a/swad_changelog.h b/swad_changelog.h index c9b13a159..d5f83bb5a 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -178,13 +178,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.71.8 (2016-11-26)" +#define Log_PLATFORM_VERSION "SWAD 16.71.9 (2016-11-26)" #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.71.9: Nov 26, 2016 Fixed bug in list of students, reported by Javier Fernández Baldomero. (207641 lines) Version 16.71.8: Nov 26, 2016 Contextual help on email to students. Contextual help on global announcements. (207634 lines) Version 16.71.7: Nov 26, 2016 Code refactoring in timetable. (207626 lines) diff --git a/swad_user.c b/swad_user.c index 6a8fca4cf..60f1750cd 100644 --- a/swad_user.c +++ b/swad_user.c @@ -5814,9 +5814,16 @@ void Usr_ListAllDataStds (void) Sco_SetScopesForListingStudents (); Sco_GetScope ("ScopeUsr"); - /***** Get groups to show *****/ + /***** If the scope is the current course... *****/ if (Gbl.Scope.Current == Sco_SCOPE_CRS) + { + /* Get list of groups types and groups in current course + This is necessary to show columns with group selection */ + Grp_GetListGrpTypesInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS); + + /* Get groups to show */ Grp_GetParCodsSeveralGrpsToShowUsrs (); + } /****** Get and order list of students in current course ******/ Usr_GetListUsrs (Rol_STUDENT,Gbl.Scope.Current);