From 7b95e14578bc5dae055b1b86f6e74c0499c6bdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 16 May 2019 14:22:10 +0200 Subject: [PATCH] Version18.121.1 --- swad_changelog.h | 3 ++- swad_institution.c | 24 +++--------------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index b12e91abf..2e08782fe 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -448,10 +448,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.121 (2019-05-13)" +#define Log_PLATFORM_VERSION "SWAD 18.121.1 (2019-05-16)" #define CSS_FILE "swad18.112.1.css" #define JS_FILE "swad18.116.5.js" /* + Version 18.121.1: May 16, 2019 Fixed bug in renaming of institution. (242697 lines) Version 18.121: May 13, 2019 Module swad_web_service is renamed as swad_API. New API function getCourses. (242708 lines) Version 18.120.2: Apr 30, 2019 Code refactoring related to boxes. (242465 lines) diff --git a/swad_institution.c b/swad_institution.c index 867d99d54..e9e531885 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -1792,7 +1792,7 @@ void Ins_RemoveInstitution (void) } /*****************************************************************************/ -/***************** Change the name of an institution *******************/ +/********************* Change the name of an institution *********************/ /*****************************************************************************/ void Ins_RenameInsShort (void) @@ -1821,32 +1821,14 @@ void Ins_RenameInsFull (void) void Ins_RenameInsShortInConfig (void) { - struct Instit *Ins = NULL; - - /***** Institution constructor *****/ - Ins_EditingInstitutionConstructor (&Ins); - /***** Rename institution *****/ - Ins->InsCod = Gbl.Hierarchy.Ins.InsCod; - Ins_RenameInstitution (Ins,Cns_SHRT_NAME); - - /***** Institution destructor *****/ - Ins_EditingInstitutionDestructor (&Ins); + Ins_RenameInstitution (&Gbl.Hierarchy.Ins,Cns_SHRT_NAME); } void Ins_RenameInsFullInConfig (void) { - struct Instit *Ins = NULL; - - /***** Institution constructor *****/ - Ins_EditingInstitutionConstructor (&Ins); - /***** Rename institution *****/ - Ins->InsCod = Gbl.Hierarchy.Ins.InsCod; - Ins_RenameInstitution (Ins,Cns_FULL_NAME); - - /***** Institution destructor *****/ - Ins_EditingInstitutionDestructor (&Ins); + Ins_RenameInstitution (&Gbl.Hierarchy.Ins,Cns_FULL_NAME); } /*****************************************************************************/