mirror of https://github.com/acanas/swad-core.git
Version18.68.1
This commit is contained in:
parent
7f459e65fa
commit
1559be56e0
|
@ -447,10 +447,11 @@ En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 18.68 (2019-03-07)"
|
#define Log_PLATFORM_VERSION "SWAD 18.68.1 (2019-03-08)"
|
||||||
#define CSS_FILE "swad18.67.css"
|
#define CSS_FILE "swad18.67.css"
|
||||||
#define JS_FILE "swad18.64.js"
|
#define JS_FILE "swad18.64.js"
|
||||||
/*
|
/*
|
||||||
|
Version 18.68.1: Mar 08, 2019 A teacher can register students in groups, even if he/she doesn't belong to them. (238910 lines)
|
||||||
Version 18.68: Mar 07, 2019 Photo is zoomed even in record card.
|
Version 18.68: Mar 07, 2019 Photo is zoomed even in record card.
|
||||||
Teachers record cards are only visible inside courses.
|
Teachers record cards are only visible inside courses.
|
||||||
Fixed bug in notifications. (238918 lines)
|
Fixed bug in notifications. (238918 lines)
|
||||||
|
|
20
swad_group.c
20
swad_group.c
|
@ -2085,7 +2085,7 @@ static bool Grp_ListGrpsForChangeMySelection (struct GroupType *GrpTyp,
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*************** Show list of groups to register/remove users ****************/
|
/*************** Show list of groups to register/remove users ****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// If UsrCod > 0 ==> mark her/his groups as checked
|
// If UsrCod > 0 ==> mark her/his groups as checked
|
||||||
// If UsrCod <= 0 ==> do not mark any group as checked
|
// If UsrCod <= 0 ==> do not mark any group as checked
|
||||||
|
|
||||||
void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
|
void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
|
||||||
|
@ -2118,26 +2118,20 @@ void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*************** List groups of a type to add or remove users ****************/
|
/*************** List groups of a type to add or remove users ****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// If UsrCod > 0 ==> mark her/his groups as checked
|
// If UsrCod > 0 ==> mark her/his groups as checked
|
||||||
// If UsrCod <= 0 ==> do not mark any group as checked
|
// If UsrCod <= 0 ==> do not mark any group as checked
|
||||||
|
|
||||||
static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
||||||
{
|
{
|
||||||
struct ListCodGrps LstGrpsIBelong;
|
|
||||||
struct ListCodGrps LstGrpsUsrBelongs;
|
struct ListCodGrps LstGrpsUsrBelongs;
|
||||||
unsigned NumGrpThisType;
|
unsigned NumGrpThisType;
|
||||||
bool IBelongToThisGroup;
|
|
||||||
bool UsrBelongsToThisGroup;
|
bool UsrBelongsToThisGroup;
|
||||||
struct Group *Grp;
|
struct Group *Grp;
|
||||||
|
|
||||||
/***** Write heading *****/
|
/***** Write heading *****/
|
||||||
Grp_WriteGrpHead (GrpTyp);
|
Grp_WriteGrpHead (GrpTyp);
|
||||||
|
|
||||||
/***** Query from the database the groups of this type which I belong to *****/
|
/***** Query the groups of this type which the user belongs to *****/
|
||||||
Grp_GetLstCodGrpsUsrBelongs (Gbl.CurrentCrs.Crs.CrsCod,GrpTyp->GrpTypCod,
|
|
||||||
Gbl.Usrs.Me.UsrDat.UsrCod,&LstGrpsIBelong);
|
|
||||||
|
|
||||||
/***** Query from the database the groups of this type which I belong to *****/
|
|
||||||
if (UsrCod > 0)
|
if (UsrCod > 0)
|
||||||
Grp_GetLstCodGrpsUsrBelongs (Gbl.CurrentCrs.Crs.CrsCod,GrpTyp->GrpTypCod,
|
Grp_GetLstCodGrpsUsrBelongs (Gbl.CurrentCrs.Crs.CrsCod,GrpTyp->GrpTypCod,
|
||||||
Gbl.Usrs.Other.UsrDat.UsrCod,&LstGrpsUsrBelongs);
|
Gbl.Usrs.Other.UsrDat.UsrCod,&LstGrpsUsrBelongs);
|
||||||
|
@ -2148,7 +2142,6 @@ static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
||||||
NumGrpThisType++)
|
NumGrpThisType++)
|
||||||
{
|
{
|
||||||
Grp = &(GrpTyp->LstGrps[NumGrpThisType]);
|
Grp = &(GrpTyp->LstGrps[NumGrpThisType]);
|
||||||
IBelongToThisGroup = Grp_CheckIfGrpIsInList (Grp->GrpCod,&LstGrpsIBelong);
|
|
||||||
UsrBelongsToThisGroup = (UsrCod > 0) ? Grp_CheckIfGrpIsInList (Grp->GrpCod,&LstGrpsUsrBelongs) :
|
UsrBelongsToThisGroup = (UsrCod > 0) ? Grp_CheckIfGrpIsInList (Grp->GrpCod,&LstGrpsUsrBelongs) :
|
||||||
false;
|
false;
|
||||||
|
|
||||||
|
@ -2164,10 +2157,8 @@ static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
||||||
Grp->GrpCod);
|
Grp->GrpCod);
|
||||||
if (UsrBelongsToThisGroup)
|
if (UsrBelongsToThisGroup)
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
if (!(IBelongToThisGroup ||
|
fprintf (Gbl.F.Out," />"
|
||||||
Gbl.Usrs.Me.Role.Logged == Rol_SYS_ADM))
|
"</td>");
|
||||||
fprintf (Gbl.F.Out," disabled=\"disabled\"");
|
|
||||||
fprintf (Gbl.F.Out," /></td>");
|
|
||||||
|
|
||||||
Grp_WriteRowGrp (Grp,UsrBelongsToThisGroup);
|
Grp_WriteRowGrp (Grp,UsrBelongsToThisGroup);
|
||||||
|
|
||||||
|
@ -2177,7 +2168,6 @@ static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
||||||
/***** Free memory with the lists of groups *****/
|
/***** Free memory with the lists of groups *****/
|
||||||
if (UsrCod > 0)
|
if (UsrCod > 0)
|
||||||
Grp_FreeListCodGrp (&LstGrpsUsrBelongs);
|
Grp_FreeListCodGrp (&LstGrpsUsrBelongs);
|
||||||
Grp_FreeListCodGrp (&LstGrpsIBelong);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue