diff --git a/swad_changelog.h b/swad_changelog.h index b3e03b061..198fbcc19 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.75 (2015/02/27)" +#define Log_PLATFORM_VERSION "SWAD 14.75.1 (2015/03/02)" // 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.75.1: Mar 02, 2015 Fixed bug in file browser, reported by Germán Luzón González and Javier Fernández Baldomero. (178175 lines) Version 14.75: Feb 27, 2015 Fixed bug when getting user's IDs from marks tables. (178172 lines) Version 14.74.12: Feb 23, 2015 Fixed bug in file browser, reported by Germán Luzón González and Javier Fernández Baldomero. (178119 lines) Version 14.74.11: Feb 10, 2015 Changes in swad.js. (178060 lines) diff --git a/swad_file_browser.c b/swad_file_browser.c index fe0330206..42d42317d 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -10228,15 +10228,17 @@ long Brw_GetCodForFiles (void) static long Brw_GetZoneUsrCodForFiles (void) { - switch (Brw_FileBrowserForDB_files[Gbl.FileBrowser.Type]) + switch (Gbl.FileBrowser.Type) { - case Brw_ADMI_ASSIG_USR: - case Brw_ADMI_WORKS_USR: - return Gbl.Usrs.Other.UsrDat.UsrCod; - case Brw_ADMI_BRIEF_USR: + case Brw_ADMI_WORKS_USR: // My works + case Brw_ADMI_ASSIG_USR: // My assignments + case Brw_ADMI_BRIEF_USR: // My briefcase return Gbl.Usrs.Me.UsrDat.UsrCod; + case Brw_ADMI_WORKS_CRS: // Course works + case Brw_ADMI_ASSIG_CRS: // Course assignments + return Gbl.Usrs.Other.UsrDat.UsrCod; default: - return -1L; + return -1L; } }