mirror of https://github.com/acanas/swad-core.git
Version19.63.1
This commit is contained in:
parent
68d5dfdcb6
commit
e8ad901e78
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
23
swad_group.c
23
swad_group.c
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue