Version19.63.1

This commit is contained in:
Antonio Cañas Vargas 2019-11-11 11:20:31 +01:00
parent 68d5dfdcb6
commit e8ad901e78
8 changed files with 16 additions and 21 deletions

View File

@ -27,7 +27,6 @@
#include <linux/stddef.h> // For NULL
#include <stdio.h> // For fprintf
#include <stdlib.h> // For malloc and free
#include <string.h> // For string functions
#include "swad_account.h"

View File

@ -487,7 +487,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.63 (2019-11-11)"
#define Log_PLATFORM_VERSION "SWAD 19.63.1 (2019-11-11)"
#define CSS_FILE "swad19.47.css"
#define JS_FILE "swad19.39.js"
/*
@ -496,6 +496,7 @@ ps2pdf source.ps destination.pdf
// TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia)
// TODO: Code refactoring in HTML h1, title, meta, video, p, iframe, input hidden, area
Version 19.63.1: Nov 11, 2019 Fixed bug in lists, reported by Javier Fernández Baldomero. (246381 lines)
Version 19.63: Nov 11, 2019 Code refactoring in HTML. (246384 lines)
Version 19.62: Nov 11, 2019 Code refactoring in HTML.
Floats converted to doubles. (? lines)

View File

@ -31,7 +31,7 @@
#include <linux/limits.h> // For PATH_MAX
#include <linux/stddef.h> // For NULL
#include <stdio.h> // For FILE,fprintf
#include <stdlib.h> // For exit, system, malloc, calloc, free, etc.
#include <stdlib.h> // For exit, system, free, etc.
#include <string.h> // For string functions
#include <sys/stat.h> // For mkdir
#include <sys/types.h> // For mkdir

View File

@ -31,7 +31,7 @@
#include <linux/limits.h> // For PATH_MAX
#include <linux/stddef.h> // For NULL
#include <stdio.h> // For asprintf
#include <stdlib.h> // For exit, system, malloc, free, etc
#include <stdlib.h> // For exit, system, free, etc
#include <string.h> // For string functions
#include <time.h> // For time
#include <sys/types.h> // For lstat, time_t

View File

@ -27,7 +27,7 @@
#include <linux/stddef.h> // For NULL
#include <locale.h> // For setlocale
#include <stdlib.h> // For exit, system, malloc, calloc, free, etc
#include <stdlib.h> // For exit
#include <string.h> // For string functions
#include <sys/time.h> // For gettimeofday
#include <sys/types.h> // For getpid

View File

@ -483,9 +483,10 @@ void Grp_PutParamsCodGrps (void)
if (!Gbl.Usrs.ClassPhoto.AllGroups &&
Gbl.Crs.Grps.LstGrpsSel.NumGrps)
{
MaxLengthGrpCods = Gbl.Crs.Grps.LstGrpsSel.NumGrps * (1 + 20) - 1;
MaxLengthGrpCods = Gbl.Crs.Grps.LstGrpsSel.NumGrps * (Cns_MAX_DECIMAL_DIGITS_LONG + 1) - 1;
if ((GrpCods = (char *) malloc (MaxLengthGrpCods + 1)) == NULL)
Lay_NotEnoughMemoryExit ();
GrpCods[0] = '\0';
for (NumGrpSel = 0;
NumGrpSel < Gbl.Crs.Grps.LstGrpsSel.NumGrps;
@ -3026,21 +3027,17 @@ static void Grp_GetDataOfGroupTypeByCod (struct GroupType *GrpTyp)
{
MYSQL_RES *mysql_res;
MYSQL_ROW row;
unsigned long NumRows;
/***** Get data of a type of group from database *****/
NumRows = DB_QuerySELECT (&mysql_res,"can not get type of group",
"SELECT GrpTypName,"
"Mandatory,"
"Multiple,"
"MustBeOpened,"
"UNIX_TIMESTAMP(OpenTime)"
if (DB_QuerySELECT (&mysql_res,"can not get type of group",
"SELECT GrpTypName," // row[0]
"Mandatory," // row[1]
"Multiple," // row[2]
"MustBeOpened," // row[3]
"UNIX_TIMESTAMP(OpenTime)" // row[4]
" FROM crs_grp_types"
" WHERE CrsCod=%ld AND GrpTypCod=%ld",
Gbl.Hierarchy.Crs.CrsCod,GrpTyp->GrpTypCod);
/***** Count number of rows in result *****/
if (NumRows != 1)
Gbl.Hierarchy.Crs.CrsCod,GrpTyp->GrpTypCod) != 1)
Lay_ShowErrorAndExit ("Error when getting type of group.");
/***** Get some data of group type *****/
@ -3072,7 +3069,7 @@ static bool Grp_GetMultipleEnrolmentOfAGroupType (long GrpTypCod)
"SELECT Multiple FROM crs_grp_types"
" WHERE GrpTypCod=%ld",
GrpTypCod) != 1)
Lay_ShowErrorAndExit ("Error when getting type of group.");
Lay_ShowErrorAndExit ("Error when getting type of enrolment.");
/***** Get multiple enrolment *****/
row = mysql_fetch_row (mysql_res);

View File

@ -25,8 +25,6 @@
/*********************************** Headers *********************************/
/*****************************************************************************/
#include <stdlib.h> // For exit, system, malloc, free, rand, etc.
#include "swad_action.h"
#include "swad_box.h"
#include "swad_config.h"

View File

@ -26,7 +26,7 @@
/*****************************************************************************/
#include <linux/stddef.h> // For NULL
#include <stdlib.h> // For exit, system, malloc, calloc, free, etc
#include <stdlib.h> // For exit
#include <string.h> // For string functions
#include "swad_action.h"