From a8aec1c1e6e00280bd73b9dfb3615e71dd9c573d Mon Sep 17 00:00:00 2001 From: acanas Date: Sun, 19 Apr 2020 12:52:21 +0200 Subject: [PATCH] Version19.190.3 --- swad_changelog.h | 4 +++- swad_room.c | 19 +++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index bae4ad250..6f483d011 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -497,7 +497,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.190.2 (2020-04-18)" +#define Log_PLATFORM_VERSION "SWAD 19.190.3 (2020-04-18)" #define CSS_FILE "swad19.190.css" #define JS_FILE "swad19.172.1.js" /* @@ -549,6 +549,8 @@ Funci // TODO: Integrar pull requests con traducciones del alemán del usuario eruedin en GitHub // TODO: Cambiar icono notificaciones nuevas con "bell-on.svg" + Version 19.190.4: Apr 18, 2020 Icons for room types. (? lines) + Version 19.190.3: Apr 18, 2020 Fixed bug in creation of a new room. (288489 lines) Version 19.190.2: Apr 18, 2020 Fixed bugs in degree photo. (288485 lines) Version 19.190.1: Apr 18, 2020 Fixed bugs in degree photo, reported by Adrián José Martínez Navarro. (288491 lines) Version 19.190: Apr 18, 2020 Changes in rooms. (288488 lines) diff --git a/swad_room.c b/swad_room.c index f5a0d8584..9f98903e9 100644 --- a/swad_room.c +++ b/swad_room.c @@ -913,11 +913,11 @@ void Roo_ChangeBuilding (void) Roo_EditingRoomConstructor (); /***** Get parameters from form *****/ - /* Get the code of the room */ + /* Get room code */ if ((Roo_EditingRoom->RooCod = Roo_GetParamRooCod ()) == -1L) Lay_ShowErrorAndExit ("Code of room is missing."); - /* Get the building of the room */ + /* Get room building */ NewBldCod = Bld_GetParamBldCod (); /***** Get data of the room from database *****/ @@ -963,11 +963,11 @@ void Roo_ChangeFloor (void) Roo_EditingRoomConstructor (); /***** Get parameters from form *****/ - /* Get the code of the room */ + /* Get room code */ if ((Roo_EditingRoom->RooCod = Roo_GetParamRooCod ()) == -1L) Lay_ShowErrorAndExit ("Code of room is missing."); - /* Get the floor of the room */ + /* Get room floor */ NewFloor = Roo_GetParamFloor (); /***** Get data of the room from database *****/ @@ -1012,11 +1012,11 @@ void Roo_ChangeType (void) Roo_EditingRoomConstructor (); /***** Get parameters from form *****/ - /* Get the code of the room */ + /* Get room code */ if ((Roo_EditingRoom->RooCod = Roo_GetParamRooCod ()) == -1L) Lay_ShowErrorAndExit ("Code of room is missing."); - /* Get the type of the room */ + /* Get room type */ NewType = Roo_GetParamType (); /***** Get data of the room from database *****/ @@ -1107,7 +1107,7 @@ static void Roo_RenameRoom (Cns_ShrtOrFullName_t ShrtOrFullName) } /***** Get parameters from form *****/ - /* Get the code of the room */ + /* Get room code */ if ((Roo_EditingRoom->RooCod = Roo_GetParamRooCod ()) == -1L) Lay_ShowErrorAndExit ("Code of room is missing."); @@ -1196,7 +1196,7 @@ void Roo_ChangeCapacity (void) Roo_EditingRoomConstructor (); /***** Get parameters from form *****/ - /* Get the code of the room */ + /* Get room code */ if ((Roo_EditingRoom->RooCod = Roo_GetParamRooCod ()) == -1L) Lay_ShowErrorAndExit ("Code of room is missing."); @@ -1392,6 +1392,9 @@ void Roo_RecFormNewRoom (void) /* Get room floor */ Roo_EditingRoom->Floor = Roo_GetParamFloor (); + /* Get room type */ + Roo_EditingRoom->Type = Roo_GetParamType (); + /* Get room short name */ Par_GetParToText ("ShortName",Roo_EditingRoom->ShrtName,Roo_MAX_BYTES_SHRT_NAME);