From 80501aa159d6ee77805b2d1d36ecffcea598b1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 19 Sep 2016 22:03:58 +0200 Subject: [PATCH] Version 15.256.3 --- swad_attendance.c | 4 ++++ swad_changelog.h | 5 +++-- swad_main.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/swad_attendance.c b/swad_attendance.c index 35980b80f..af284ef7d 100644 --- a/swad_attendance.c +++ b/swad_attendance.c @@ -1262,6 +1262,7 @@ void Att_RecFormAttEvent (void) /* Get data of the old (current) attendance event from database */ OldAtt.AttCod = ReceivedAtt.AttCod; Att_GetDataOfAttEventByCodAndCheckCrs (&OldAtt); + ReceivedAtt.Hidden = OldAtt.Hidden; } /***** Get start/end date-times *****/ @@ -1377,10 +1378,13 @@ void Att_UpdateAttEvent (struct AttendanceEvent *Att,const char *Txt) /***** Update the data of the attendance event *****/ sprintf (Query,"UPDATE att_events SET " + "Hidden='%c'," "StartTime=FROM_UNIXTIME('%ld')," "EndTime=FROM_UNIXTIME('%ld')," "CommentTchVisible='%c',Title='%s',Txt='%s'" " WHERE AttCod='%ld' AND CrsCod='%ld'", + Att->Hidden ? 'Y' : + 'N', Att->TimeUTC[Att_START_TIME], Att->TimeUTC[Att_END_TIME ], Att->CommentTchVisible ? 'Y' : diff --git a/swad_changelog.h b/swad_changelog.h index f82dee2a5..ee22db324 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -139,14 +139,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.256.1 (2016-09-19)" +#define Log_PLATFORM_VERSION "SWAD 15.256.3 (2016-09-19)" #define CSS_FILE "swad15.229.css" #define JS_FILE "swad15.238.1.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 15.256.2: Sep 19, 2016 Fixed bug in web service function removeAttendanceEvent, reported by Rubén Martín Hidalgo. (? lines) + Version 15.256.3: Sep 19, 2016 Fixed bug in web service function sendAttendanceEvent, reported by Rubén Martín Hidalgo. (204755 lines) + Version 15.256.2: Sep 19, 2016 Fixed bug in web service function removeAttendanceEvent, reported by Rubén Martín Hidalgo. (204750 lines) Version 15.256.1: Sep 19, 2016 Fixed bug in web service while sending a message. Added default values in some database fields. (204741 lines) 6 changes necessary in database: diff --git a/swad_main.c b/swad_main.c index 004404363..c1386eba7 100644 --- a/swad_main.c +++ b/swad_main.c @@ -84,10 +84,10 @@ int main (int argc, char *argv[]) "%s" "



" "

" - "Estamos migrando %s a un nuevo servidor" + "%s está parado por mantenimiento durante unos minutos." "

" "

" - "Volverá a funcionar a lo largo del lunes 19 de septiembre" + "Intente acceder más tarde, por favor." "

" "" "",