diff --git a/swad_changelog.h b/swad_changelog.h index 8db40a772..133807e2f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -600,13 +600,15 @@ TODO: Salvador Romero Cort TODO: FIX BUG, URGENT! En las fechas como parámetro Dat_WriteParamsIniEndDates(), por ejemplo al cambiar el color de la gráfica de accesos por día y hora, no se respeta la zona horaria. */ -#define Log_PLATFORM_VERSION "SWAD 20.68.2 (2021-04-26)" +#define Log_PLATFORM_VERSION "SWAD 20.68.4 (2021-04-27)" #define CSS_FILE "swad20.45.css" #define JS_FILE "swad20.6.2.js" /* TODO: Rename CENTRE to CENTER in help wiki. TODO: Rename ASSESSMENT.Announcements to ASSESSMENT.Calls_for_exams + Version 20.68.4: Apr 27, 2021 Fixed bug in question tags. Reported by Julio Ortega Lopera. (309802 lines) + Version 20.68.3: Apr 27, 2021 Maximum file size increased from 1.5 GiB to 2000 MiB. (309809 lines) Version 20.68.2: Apr 26, 2021 Code optimization in games and exams. (309807 lines) Version 20.68.1: Apr 26, 2021 Code refactoring in exams and tests. (309862 lines) Version 20.68: Apr 26, 2021 New module swad_error. (309853 lines) diff --git a/swad_error.c b/swad_error.c index dc9341034..fef217f4f 100644 --- a/swad_error.c +++ b/swad_error.c @@ -25,6 +25,8 @@ /********************************* Headers ***********************************/ /*****************************************************************************/ +#include // For exit + #include "swad_database.h" #include "swad_error.h" #include "swad_global.h" diff --git a/swad_file.h b/swad_file.h index 7149161bc..5abf7b4f5 100644 --- a/swad_file.h +++ b/swad_file.h @@ -42,7 +42,7 @@ // Maximum allowed size (in bytes) of a file when uploading it. // Must be < 2 GiB, because off_t type is of type long int -#define Fil_MAX_FILE_SIZE (1536ULL * 1024ULL * 1024ULL) // 1.5 GiB +#define Fil_MAX_FILE_SIZE (2000ULL * 1024ULL * 1024ULL) // 2000 MiB = 1.95 GiB // Global files struct Files diff --git a/swad_tag.c b/swad_tag.c index e0e5e27ae..72db80b2d 100644 --- a/swad_tag.c +++ b/swad_tag.c @@ -367,25 +367,14 @@ void Tag_RenameTag (void) static long Tag_GetTagCodFromTagTxt (const char *TagTxt) { - long TagCod; - /***** Get tag code from database *****/ - TagCod = DB_QuerySELECTCode ("can not get tag", - "SELECT TagCod" - " FROM tst_tags" - " WHERE CrsCod=%ld" - " AND TagTxt='%s'", - Gbl.Hierarchy.Crs.CrsCod, - TagTxt); - if (TagCod <= 0) - Ale_CreateAlert (Ale_ERROR,NULL, - "Wrong tag."); - - /***** Abort on error *****/ - if (Ale_GetTypeOfLastAlert () == Ale_ERROR) - Ale_ShowAlertsAndExit (); - - return TagCod; + return DB_QuerySELECTCode ("can not get tag", + "SELECT TagCod" + " FROM tst_tags" + " WHERE CrsCod=%ld" + " AND TagTxt='%s'", + Gbl.Hierarchy.Crs.CrsCod, + TagTxt); } /*****************************************************************************/ diff --git a/swad_test.c b/swad_test.c index 6b1070dd0..914d90922 100644 --- a/swad_test.c +++ b/swad_test.c @@ -4948,6 +4948,7 @@ void Tst_InsertOrUpdateQstTagsAnsIntoDB (struct Tst_Question *Question) { /***** Insert or update question in the table of questions *****/ Tst_InsertOrUpdateQstIntoDB (Question); + if (Question->QstCod > 0) { /***** Insert tags in the tags table *****/