diff --git a/swad_changelog.h b/swad_changelog.h index f9091c84..fed88c15 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -209,13 +209,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.164.1 (2017-03-24)" +#define Log_PLATFORM_VERSION "SWAD 16.164.2 (2017-03-24)" #define CSS_FILE "swad16.161.css" #define JS_FILE "swad16.144.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 16.164.3: Mar 24, 2017 Types of degree in system tab restricted to system admins only. (? lines) + Version 16.164.2: Mar 24, 2017 Code refactoring in types of degree. (217576 lines) Version 16.164.1: Mar 24, 2017 Statistics about types of degree depends on the selected scope. (217575 lines) Version 16.164: Mar 24, 2017 New figure in statistics: types of degree. (217510 lines) Version 16.163: Mar 24, 2017 Types of degree can be ordered by name and by number of degrees. diff --git a/swad_degree.c b/swad_degree.c index 62528cbe..249180e0 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -1369,7 +1369,7 @@ void Deg_EditDegrees (void) Deg_GetListDegsOfCurrentCtr (); /***** Get list of degree types *****/ - DT_GetListDegreeTypes (); + DT_GetListDegreeTypes (Sco_SCOPE_SYS,DT_ORDER_BY_DEGREE_TYPE); if (Gbl.Degs.DegTypes.Num) { diff --git a/swad_degree_type.c b/swad_degree_type.c index 7592555c..69a1fbad 100644 --- a/swad_degree_type.c +++ b/swad_degree_type.c @@ -63,16 +63,16 @@ extern struct Globals Gbl; /*****************************************************************************/ static void DT_SeeDegreeTypes (Act_Action_t NextAction,DT_Order_t DefaultOrder); -static void DT_GetParamDegTypOrder (DT_Order_t DefaultOrder); +static DT_Order_t DT_GetParamDegTypOrder (DT_Order_t DefaultOrder); -static void DT_ListDegreeTypes (Act_Action_t NextAction); +static void DT_ListDegreeTypes (Act_Action_t NextAction,DT_Order_t SelectedOrder); static void DT_EditDegreeTypes (void); static void DT_ListDegreeTypesForSeeing (void); static void DT_PutIconToEditDegTypes (void); static void DT_ListDegreeTypesForEdition (void); static void DT_PutFormToCreateDegreeType (void); -static void DT_PutHeadDegreeTypesForSeeing (Act_Action_t NextAction); +static void DT_PutHeadDegreeTypesForSeeing (Act_Action_t NextAction,DT_Order_t SelectedOrder); static void DT_PutHeadDegreeTypesForEdition (void); static void DT_CreateDegreeType (struct DegreeType *DegTyp); @@ -93,7 +93,7 @@ void DT_WriteSelectorDegreeTypes (void) /***** Form to select degree types *****/ /* Get list of degree types */ - DT_GetListDegreeTypes (); + DT_GetListDegreeTypes (Sco_SCOPE_SYS,DT_ORDER_BY_DEGREE_TYPE); /* List degree types */ fprintf (Gbl.F.Out,"