From cb1bb78847100e2fbc0389a7fa47342fd0bd0e1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 11 May 2017 15:13:49 +0200 Subject: [PATCH] Version 16.211.2 --- swad_changelog.h | 5 ++--- swad_layout.c | 7 ++----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index e75959737..59108a0e6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -231,19 +231,18 @@ // TODO: Al listar administradores, debería estar marcado por defecto "Incluir fotos" -// TODO: Al crear una nueva asignatura, falta el botón "Ir a " - /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.211.1 (2017-05-10)" +#define Log_PLATFORM_VERSION "SWAD 16.211.2 (2017-05-10)" #define CSS_FILE "swad16.209.3.css" #define JS_FILE "swad16.206.3.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.211.2: May 11, 2017 Fixed bug in alerts. (218879 lines) Version 16.211.1: May 11, 2017 Change in layout of forms to edit groups. (218882 lines) Version 16.211: May 10, 2017 Code refactoring related to alerts. (218879 lines) Version 16.210: May 10, 2017 Changes in layout of records. (218869 lines) diff --git a/swad_layout.c b/swad_layout.c index 39eb2bce1..04524f5e9 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -1670,14 +1670,11 @@ void Lay_ShowPendingAlert (void) { /***** Anything to show? *****/ if (Gbl.Alert.Type != Lay_NONE) - { /***** Show alert *****/ Lay_ShowAlert (Gbl.Alert.Type,Gbl.Alert.Txt); - /***** Avoid writing twice the same alert if called more than once *****/ - Gbl.Alert.Type = Lay_NONE; - Gbl.Alert.Txt[0] = '\0'; - } + // Do not be tempted to restore the value of Gbl.Alert.Type to Lay_NONE here, + // since it can still be used after calling this function. } /*****************************************************************************/