From abdf4cdce177e670a123cfdc2a130ceb250eb9a7 Mon Sep 17 00:00:00 2001 From: acanas Date: Thu, 8 Sep 2022 11:10:55 +0200 Subject: [PATCH] Version 21.116.1: Sep 08, 2022 Fixed bug updating institution status. --- swad_changelog.h | 3 ++- swad_hierarchy.c | 1 + swad_institution.c | 2 +- swad_text.c | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 0428bdb3b..5e1257dd5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate TODO: Attach pdf files in multimedia. */ -#define Log_PLATFORM_VERSION "SWAD 21.116 (2022-09-02)" +#define Log_PLATFORM_VERSION "SWAD 21.116.1 (2022-09-08)" #define CSS_FILE "swad21.107.1.css" #define JS_FILE "swad21.100.js" /* + Version 21.116.1: Sep 08, 2022 Fixed bug updating institution status. (329215 lines) Version 21.116: Sep 02, 2022 Code refactoring in edition of program items. (329214 lines) Version 21.115: Sep 01, 2022 Code refactoring in edition of program items. (329212 lines) Version 21.114.1: Jul 25, 2022 Fixed bug removing an item resource. (329264 lines) diff --git a/swad_hierarchy.c b/swad_hierarchy.c index d6b3e547f..cf0be3b31 100644 --- a/swad_hierarchy.c +++ b/swad_hierarchy.c @@ -814,6 +814,7 @@ Hie_Status_t Hie_GetParamStatus (void) 0, (unsigned long) Hie_MAX_STATUS, (unsigned long) Hie_WRONG_STATUS); + if (Status == Hie_WRONG_STATUS) Err_WrongStatusExit (); diff --git a/swad_institution.c b/swad_institution.c index d9dfae1e2..1b61fec78 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -1377,7 +1377,7 @@ void Ins_ChangeInsStatus (void) Ins_GetDataOfInstitByCod (Ins_EditingIns); /***** Update status *****/ - Ins_DB_UpdateInsStatus (Status,Ins_EditingIns->InsCod); + Ins_DB_UpdateInsStatus (Ins_EditingIns->InsCod,Status); Ins_EditingIns->Status = Status; /***** Create message to show the change made diff --git a/swad_text.c b/swad_text.c index 8bbed7fc3..3e9928b1d 100644 --- a/swad_text.c +++ b/swad_text.c @@ -51882,7 +51882,7 @@ const char *Txt_The_status_of_the_institution_X_has_changed = // Warning: it is #elif L==9 // pt "O status da instituição %s mudou."; #elif L==10 // tr - "The status of the institution %s has changed."; // Çeviri lazim! + "%s kurumunun statüsü değişti."; #endif const char *Txt_The_survey_has_been_modified =