diff --git a/swad_changelog.h b/swad_changelog.h index 1eeb53bd3..393478b22 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -189,13 +189,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.107.7 (2016-12-27)" +#define Log_PLATFORM_VERSION "SWAD 16.107.9 (2016-12-27)" #define CSS_FILE "swad16.106.5.css" #define JS_FILE "swad16.101.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.107.9: Dec 27, 2016 Changes in edition of new notice. (211607 lines) + Version 16.107.8: Dec 27, 2016 Changes in behaviour of labels in forms. (211598 lines) Version 16.107.7: Dec 27, 2016 Code refactoring in forums. (211594 lines) Version 16.107.6: Dec 27, 2016 Changes in behaviour of labels in forms. (211593 lines) Version 16.107.5: Dec 26, 2016 Changes in behaviour of labels in forms. (211540 lines) diff --git a/swad_message.c b/swad_message.c index 73d32f63e..7a736b2f2 100644 --- a/swad_message.c +++ b/swad_message.c @@ -422,38 +422,42 @@ static void Msg_WriteFormUsrsIDsOrNicksOtherRecipients (void) extern const char *Txt_Other_recipients; extern const char *Txt_Recipients; extern const char *Txt_nicks_emails_or_IDs_separated_by_commas; - char Nickname[Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA+1]; // old version because is a nickname retrieved from database. TODO: change in 2013 - bool PutColspan; + char Nickname[Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA+1]; unsigned Colspan; + bool StdsAndTchsWritten = Gbl.CurrentCrs.Crs.CrsCod > 0 && // If there is a course selected + (Gbl.Usrs.Me.IBelongToCurrentCrs || // I belong to it + Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM); - PutColspan = Gbl.CurrentCrs.Crs.CrsCod > 0 && // If there is a course selected - (Gbl.Usrs.Me.IBelongToCurrentCrs || // I belong to it - Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM); - if (PutColspan) + /***** How many columns? *****/ + if (StdsAndTchsWritten) Colspan = Usr_GetColumnsForSelectUsrs (); + else + Colspan = 1; + + /***** Title *****/ + fprintf (Gbl.F.Out,"