Version 16.195.7

This commit is contained in:
Antonio Cañas Vargas 2017-04-29 21:32:04 +02:00
parent 6027941e92
commit 8cb3870e32
2 changed files with 16 additions and 12 deletions

View File

@ -223,13 +223,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.195.6 (2017-04-29)"
#define Log_PLATFORM_VERSION "SWAD 16.195.7 (2017-04-29)"
#define CSS_FILE "swad16.193.4.css"
#define JS_FILE "swad16.181.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.195.7: Apr 29, 2017 Fixed bug in tabs. (218511 lines)
Version 16.195.6: Apr 29, 2017 Code refactoring in edition of groups. (218507 lines)
Version 16.195.5: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)
Version 16.195.4: Apr 29, 2017 Changes in layout of edition of groups. (218513 lines)

View File

@ -171,23 +171,26 @@ static bool Tab_CheckIfICanViewTab (Tab_Tab_t Tab)
case TabUnk:
return false;
case TabSys:
return (Gbl.CurrentCty.Cty.CtyCod <= 0);
return (Gbl.CurrentCty.Cty.CtyCod <= 0); // No country selected
case TabCty:
return (Gbl.CurrentCty.Cty.CtyCod > 0 &&
Gbl.CurrentIns.Ins.InsCod <= 0);
return (Gbl.CurrentCty.Cty.CtyCod > 0 && // Country selected
Gbl.CurrentIns.Ins.InsCod <= 0); // No institution selected
case TabIns:
return (Gbl.CurrentIns.Ins.InsCod > 0 &&
Gbl.CurrentCtr.Ctr.CtrCod <= 0);
return (Gbl.CurrentIns.Ins.InsCod > 0 && // Institution selected
Gbl.CurrentCtr.Ctr.CtrCod <= 0); // No centre selected
case TabCtr:
return (Gbl.CurrentCtr.Ctr.CtrCod > 0 &&
Gbl.CurrentDeg.Deg.DegCod <= 0);
return (Gbl.CurrentCtr.Ctr.CtrCod > 0 && // Centre selected
Gbl.CurrentDeg.Deg.DegCod <= 0); // No degree selected
case TabDeg:
return (Gbl.CurrentDeg.Deg.DegCod > 0 &&
Gbl.CurrentCrs.Crs.CrsCod <= 0);
return (Gbl.CurrentDeg.Deg.DegCod > 0 && // Degree selected
Gbl.CurrentCrs.Crs.CrsCod <= 0); // No course selected
case TabCrs:
return (Gbl.CurrentCrs.Crs.CrsCod > 0);
return (Gbl.CurrentCrs.Crs.CrsCod > 0); // Course selected
case TabAss:
return (Gbl.CurrentCrs.Crs.CrsCod > 0 || // Course selected
Gbl.Usrs.Me.LoggedRole >= Rol_STUDENT);// Surveys not available for unknown users and guests
case TabFil:
return (Gbl.CurrentIns.Ins.InsCod > 0);
return (Gbl.CurrentIns.Ins.InsCod > 0); // Institution selected
default:
return true;
}