From 50a420b047f6244475f8fc9b4a404c08ec2692fb Mon Sep 17 00:00:00 2001 From: acanas Date: Sat, 29 Aug 2020 19:24:23 +0200 Subject: [PATCH] Version19.260.3 --- swad_API.c | 10 +++++----- swad_changelog.h | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/swad_API.c b/swad_API.c index 3a6e3648c..ee16717fd 100644 --- a/swad_API.c +++ b/swad_API.c @@ -5337,11 +5337,8 @@ int swad__answerMatchQuestion (struct soap *soap, Match.MchCod = (long) matchCode; /***** Set default output *****/ - /* - > 0 if the answer was saved - = 0 if the answer was not saved because the match is in pause or in another question - < 0 on error - */ + /* <= 0 on error + > 0 on sucess */ answerMatchQuestionOut->matchCode = -1; /***** Check web service key *****/ @@ -5396,6 +5393,9 @@ int swad__answerMatchQuestion (struct soap *soap, Mch_StoreQuestionAnswer (&Match,QstInd,&UsrAnswer); } + /***** Set success output *****/ + answerMatchQuestionOut->matchCode = Match.MchCod; + return SOAP_OK; } diff --git a/swad_changelog.h b/swad_changelog.h index 193b6c7ea..de9c68c71 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -555,7 +555,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.260.2 (2020-08-28)" +#define Log_PLATFORM_VERSION "SWAD 19.260.3 (2020-08-30)" #define CSS_FILE "swad19.253.css" #define JS_FILE "swad19.254.js" /* @@ -573,6 +573,7 @@ TODO: Que al generar un examen s TODO: Create module swad_test_result "sudo apt install webp" en Ubuntu, y "yum install libwebp libwebp-tools" en CentOS, para decodificar imágenes Web/ug reportado por Javier Fernández Baldomero. + Version 19.260.3: Aug 30, 2020 Fixed bug in API function answerMatchQuestion. Reported by Sergio Díaz Rueda. (304010 lines) Version 19.260.2: Aug 28, 2020 Fixed bugs in API functions related to games and matches. Reported by Sergio Díaz Rueda. (304010 lines) Version 19.260.1: Aug 26, 2020 Fixed bugs in API functions related to games and matches. Reported by Sergio Díaz Rueda. (304027 lines) Version 19.260: Aug 23, 2020 New API function getAvailableRoles. (304009 lines)