From 5e807b32384860b1004f4214854959cc0cd03717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 21 Jan 2015 10:26:08 +0100 Subject: [PATCH] Version 14.63.2 --- swad_changelog.h | 5 +++-- swad_course.c | 13 ++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 02543c1ca..d82d622b6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -39,11 +39,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.63.1 (2015/01/21)" +#define Log_PLATFORM_VERSION "SWAD 14.63.2 (2015/01/21)" // 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.63.2: Jan 21, 2015 Fixed bug in search of courses. (175542 lines) Version 14.63.1: Jan 21, 2015 Remove last accesses to file browsers related with an institution, a centre or a degree. (175531 lines) Version 14.63: Jan 21, 2015 See/admin documents of degree, centre and institution. (175512 lines) 1 change necessary in database: @@ -65,7 +66,7 @@ ALTER TABLE files ADD COLUMN InsCod INT NOT NULL DEFAULT -1 AFTER FilCod; ALTER TABLE files ADD COLUMN CtrCod INT NOT NULL DEFAULT -1 AFTER InsCod; ALTER TABLE files ADD COLUMN DegCod INT NOT NULL DEFAULT -1 AFTER CtrCod; DROP INDEX CrsCod ON files; -DROP INDEX CrsCod_GrpCod_FileBrowser ON files; +DROP INDEX CrsCod_GrpCod_ZoneUsrCod_FileBrowser ON files; CREATE INDEX Location ON files (InsCod,CtrCod,DegCod,CrsCod,GrpCod,FileBrowser); Version 14.60: Jan 20, 2015 See/admin documents of degree, centre and institution (not finished). (175079 lines) diff --git a/swad_course.c b/swad_course.c index 7723d0837..e7b5094d0 100644 --- a/swad_course.c +++ b/swad_course.c @@ -3259,6 +3259,17 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA const char *BgColor; bool Accepted; + /* + SELECT degrees.DegCod, 0 + courses.CrsCod, 1 + degrees.ShortName, 2 + degrees.FullName, 3 + courses.Year, 4 + courses.Semester, 5 + courses.FullName, 6 + centres.ShortName 7 + */ + /***** Get degree code (row[0]) *****/ if ((Deg.DegCod = Str_ConvertStrCodToLongCod (row[0])) < 0) Lay_ShowErrorAndExit ("Wrong code of degree."); @@ -3352,7 +3363,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA fprintf (Gbl.F.Out,"%s" "" "", - row[7]); + row[6]); /***** Write number of students in course *****/ fprintf (Gbl.F.Out,"