mirror of https://github.com/acanas/swad-core.git
Version 20.68.4: Apr 27, 2021 Fixed bug in question tags. Reported by Julio Ortega Lopera.
This commit is contained in:
parent
8565264e1f
commit
c054fd3351
|
@ -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)
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
/********************************* Headers ***********************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#include <stdlib.h> // For exit
|
||||
|
||||
#include "swad_database.h"
|
||||
#include "swad_error.h"
|
||||
#include "swad_global.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
|
||||
|
|
25
swad_tag.c
25
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);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -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 *****/
|
||||
|
|
Loading…
Reference in New Issue