From 8e2d5888214a362d7bf54eb621e7dd67239b3abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 21 Sep 2017 12:52:01 +0200 Subject: [PATCH] Version 17.5.2 --- swad_changelog.h | 4 ++-- swad_project.c | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index ce471df70..05f3ff1cb 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -252,14 +252,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 17.5.1 (2017-09-21)" +#define Log_PLATFORM_VERSION "SWAD 17.5.2 (2017-09-21)" #define CSS_FILE "swad17.0.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 17.5.2: Sep 21, 2017 Do not display users when creating a new project. (? lines) + Version 17.5.2: Sep 21, 2017 Do not display users when creating a new project. (230270 lines) Version 17.5.1: Sep 21, 2017 Fixed bug when removing a project. (230267 lines) Version 17.5: Sep 21, 2017 Users can be added to a project. (230250 lines) Version 17.4.3: Sep 21, 2017 Changes in listing and edition of projects. (230222 lines) diff --git a/swad_project.c b/swad_project.c index e2c9c35dc..45c2be268 100644 --- a/swad_project.c +++ b/swad_project.c @@ -1456,15 +1456,18 @@ static void Prj_RequestCreatOrEditPrj (long PrjCod) Act_FormEnd (); /***** Project members *****/ - Box_StartBoxTable (NULL,Txt_Project_members,NULL, - NULL,Box_NOT_CLOSABLE,2); - Prj_ShowOneProjectUsrsRow (&Prj,Prj_EDIT_ONE_PROJECT, - Txt_Tutors, - Prj_ROLE_TUT); // Tutors - Prj_ShowOneProjectUsrsRow (&Prj,Prj_EDIT_ONE_PROJECT, - Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN], - Prj_ROLE_STD); // Students - Box_EndBoxTable (); + if (!ItsANewProject) // Existing project + { + Box_StartBoxTable (NULL,Txt_Project_members,NULL, + NULL,Box_NOT_CLOSABLE,2); + Prj_ShowOneProjectUsrsRow (&Prj,Prj_EDIT_ONE_PROJECT, + Txt_Tutors, + Prj_ROLE_TUT); // Tutors + Prj_ShowOneProjectUsrsRow (&Prj,Prj_EDIT_ONE_PROJECT, + Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN], + Prj_ROLE_STD); // Students + Box_EndBoxTable (); + } /***** End box *****/ Box_EndBox ();