From f9c7402d066fab8673f81882e19072dccb886879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 30 May 2016 18:26:29 +0200 Subject: [PATCH] Version 15.212.2 --- swad_changelog.h | 4 ++-- swad_test.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index f6d86ff5e..ed433e224 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -137,19 +137,19 @@ // TODO: Fix bug: Asignatura: Arquitectura de Computadores, Crear ZIP de todos los trabajos del grupo C3 // TODO: Fix bug: se oculta el único descriptor de unas preguntas de test, y luego se renombra dicho descriptor --> el descriptor desaparece // TODO: Fix bug: Student cant not see their test results -// TODO: Fix bug: button "Add a new question" in test should not be available for students /*****************************************************************************/ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.212.1 (2016-05-30)" +#define Log_PLATFORM_VERSION "SWAD 15.212.2 (2016-05-30)" #define CSS_FILE "swad15.210.css" #define JS_FILE "swad15.197.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.212.2: May 30, 2016 Fixed bug in test question. Button "Add a new question" in tests will not be available for students. (201516 lines) Version 15.212.1: May 30, 2016 Fixed bug in course information. (201515 lines) Version 15.212: May 30, 2016 Fixed bug in edition of syllabus, reported by Raymon Moreno Colina and Javier Fernández Baldomero. Code refactoring related to course info. (201471 lines) diff --git a/swad_test.c b/swad_test.c index b3eb9cf11..b1b73def7 100644 --- a/swad_test.c +++ b/swad_test.c @@ -345,7 +345,8 @@ void Tst_ShowFormAskTst (void) Lay_ShowAlert (Lay_INFO,Txt_No_test_questions); /***** Button to create a new question *****/ - Tst_PutButtonToAddQuestion (); + if (ICanEdit) + Tst_PutButtonToAddQuestion (); } /***** End frame *****/