From 03827a85a16c0330fed962fa749718d2127d6c74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 10 Oct 2017 12:37:09 +0200 Subject: [PATCH] Version 17.24 --- swad_changelog.h | 3 +- swad_department.c | 7 +- swad_department.h | 2 + swad_global.c | 11 ++-- swad_global.h | 5 +- swad_indicator.c | 7 +- swad_pagination.c | 6 ++ swad_project.c | 160 ++++++++++++++++++++++++++++++++++------------ swad_project.h | 90 +++++++++++++++----------- swad_record.c | 4 +- 10 files changed, 198 insertions(+), 97 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index cfb9e8f7d..dae440d1d 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -254,13 +254,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 17.23.2 (2017-10-10)" +#define Log_PLATFORM_VERSION "SWAD 17.24 (2017-10-10)" #define CSS_FILE "swad17.0.css" #define JS_FILE "swad17.17.1.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.24: Oct 10, 2017 Filter projects by department. (234227 lines) Version 17.23.2: Oct 10, 2017 Code refactoring in filter of projects. (234137 lines) Version 17.23.1: Oct 10, 2017 Changes in selectors of departments. (234133 lines) Version 17.23: Oct 10, 2017 New filter to select preassigned/non-preassigned projects. diff --git a/swad_department.c b/swad_department.c index 0f9d05fdf..747e28164 100644 --- a/swad_department.c +++ b/swad_department.c @@ -582,7 +582,7 @@ static void Dpt_ListDepartmentsForEdition (void) static void Dpt_PutParamDptCod (long DptCod) { - Par_PutHiddenParamLong ("DptCod",DptCod); + Par_PutHiddenParamLong (Dpt_PARAM_DPT_COD_NAME,DptCod); } /*****************************************************************************/ @@ -594,7 +594,7 @@ long Dpt_GetAndCheckParamDptCod (long MinCodAllowed) long DptCod; /***** Get and check parameter with code of department *****/ - if ((DptCod = Par_GetParToLong ("DptCod")) < MinCodAllowed) + if ((DptCod = Par_GetParToLong (Dpt_PARAM_DPT_COD_NAME)) < MinCodAllowed) Lay_ShowErrorAndExit ("Code of department is missing or invalid."); return DptCod; @@ -1125,8 +1125,9 @@ void Dpt_WriteSelectorDepartment (long InsCod,long DptCod, /***** Selector to select department *****/ /* Start selector */ - fprintf (Gbl.F.Out,"