From df0dd2ffd78d4c90b36bb259ec58b4148bf3485e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 6 Nov 2019 22:47:12 +0100 Subject: [PATCH] Version19.54.8 --- Makefile | 2 +- swad_changelog.h | 3 ++- swad_date.c | 8 ++++---- swad_group.c | 3 ++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index ed549ec21..12eaeeb63 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ CC = gcc # LIBS when using MariaDB (also valid with MySQL): LIBS = -lssl -lcrypto -lpthread -lrt -lmysqlclient -lz -L/usr/lib64/mysql -lm -lgsoap -CFLAGS = -Wall -Wextra -mtune=native -Os -s +CFLAGS = -Wall -Wextra -mtune=native -O2 -s all: swad_ca swad_de swad_en swad_es swad_fr swad_gn swad_it swad_pl swad_pt diff --git a/swad_changelog.h b/swad_changelog.h index ab18747f9..cf254f137 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -490,7 +490,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.54.7 (2019-11-06)" +#define Log_PLATFORM_VERSION "SWAD 19.54.8 (2019-11-06)" #define CSS_FILE "swad19.47.css" #define JS_FILE "swad19.39.js" /* @@ -498,6 +498,7 @@ ps2pdf source.ps destination.pdf // TODO: Impedir la creación y edición de proyectos si no son editables. // TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia) + Version 19.54.8: Nov 05, 2019 Fixed bug in groups open time. (245925 lines) Version 19.54.7: Nov 05, 2019 Code refactoring in HTML select options. (245923 lines) Version 19.54.6: Nov 05, 2019 Code refactoring in HTML select options. (245941 lines) Version 19.54.5: Nov 05, 2019 Code refactoring in HTML select options. (245985 lines) diff --git a/swad_date.c b/swad_date.c index 0e880993b..d5b1ce731 100644 --- a/swad_date.c +++ b/swad_date.c @@ -554,7 +554,7 @@ void Dat_WriteFormClientLocalDateTimeFromTimeUTC (const char *Id, 5, // Dat_FORM_SECONDS_OFF 1, // Dat_FORM_SECONDS_ON }; - char *ParamTimeUTC; + char *IdTimeUTC; /***** Begin table *****/ HTM_TABLE_Begin (NULL); @@ -708,10 +708,10 @@ void Dat_WriteFormClientLocalDateTimeFromTimeUTC (const char *Id, HTM_TABLE_End (); /***** Hidden field with UTC time (seconds since 1970) used to send time *****/ - if (asprintf (&ParamTimeUTC,"%sTimeUTC",Id) < 0) + if (asprintf (&IdTimeUTC,"%sTimeUTC",Id) < 0) Lay_NotEnoughMemoryExit (); - Par_PutHiddenParamLong (ParamTimeUTC,ParamTimeUTC,(long) TimeUTC); - free (ParamTimeUTC); + Par_PutHiddenParamLong (IdTimeUTC,"OpenTimeUTC",(long) TimeUTC); + free (IdTimeUTC); /***** Script to set selectors to local date and time from UTC time *****/ HTM_SCRIPT_Begin (NULL,NULL); diff --git a/swad_group.c b/swad_group.c index a12e3f0f3..ac357686c 100644 --- a/swad_group.c +++ b/swad_group.c @@ -4472,7 +4472,8 @@ void Grp_ChangeMandatGrpTyp (void) { /***** Update of the table of types of group changing the old type of enrolment by the new *****/ DB_QueryUPDATE ("can not update enrolment type of a type of group", - "UPDATE crs_grp_types SET Mandatory='%c' WHERE GrpTypCod=%ld", + "UPDATE crs_grp_types SET Mandatory='%c'" + " WHERE GrpTypCod=%ld", NewMandatoryEnrolment ? 'Y' : 'N', Gbl.Crs.Grps.GrpTyp.GrpTypCod);