Version 14.44.2

This commit is contained in:
Antonio Cañas Vargas 2014-12-27 13:49:17 +01:00
parent ddd7ecdeaa
commit b8fb5a28fd
6 changed files with 21 additions and 8 deletions

View File

@ -457,7 +457,7 @@ void Acc_CreateNewUsr (struct UsrData *UsrDat)
UsrDat->Birthday.Year,UsrDat->Birthday.Month,UsrDat->Birthday.Day,
UsrDat->Comments ? UsrDat->Comments :
"",
Lay_SHOW_BOTH_COLUMNS);
Cfg_DEFAULT_COLUMNS);
UsrDat->UsrCod = DB_QueryINSERTandReturnCode (Query,"can not create user");
/* Insert user's IDs as confirmed */

View File

@ -35,11 +35,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.44.1 (2014/12/27)"
#define Log_PLATFORM_VERSION "SWAD 14.44.2 (2014/12/27)"
// 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 | tail -1
/*
Version 14.44.2 :Dic 27, 2014 Fixed bugs in layout columns. (174262 lines)
Version 14.44.1 :Dic 27, 2014 Changes in layout columns. (174251 lines)
Version 14.44 :Dic 27, 2014 Removed vendor-specific properties in CSS. (174230 lines)
Version 14.43.1 :Dic 27, 2014 Fixed bugs in HTML and CSS. (174319 lines)

View File

@ -33,6 +33,12 @@
//#define SWAD_UGR_ES // Comment this line if not applicable
//#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable
/*****************************************************************************/
/********************************* Headers ***********************************/
/*****************************************************************************/
#include "swad_layout.h"
/*****************************************************************************/
/***************************** Public constants ******************************/
/*****************************************************************************/
@ -118,7 +124,7 @@
#define Cfg_ABOUT_LOGO_WIDTH 32
#define Cfg_ABOUT_LOGO_HEIGHT 32
#define Cfg_DEFAULT_COLUMNS Lay_BOTH_COUMNS_HIDDEN
#define Cfg_DEFAULT_COLUMNS Lay_HIDE_BOTH_COLUMNS
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc
#define Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND "" // Client of the web service called by this CGI

View File

@ -207,7 +207,7 @@ void Prf_GetPrefsFromIP (void)
if (sscanf (row[3],"%u",&Gbl.Prefs.SideCols) == 1)
{
if (Gbl.Prefs.SideCols > Lay_SHOW_BOTH_COLUMNS)
Gbl.Prefs.SideCols = Lay_SHOW_BOTH_COLUMNS; // Show both side columns
Gbl.Prefs.SideCols = Cfg_DEFAULT_COLUMNS;
}
else
Gbl.Prefs.SideCols = Cfg_DEFAULT_COLUMNS;

View File

@ -490,9 +490,13 @@ void Rec_CreateRecordField (void)
char Query[1024];
/***** Create the new field *****/
sprintf (Query,"INSERT INTO crs_record_fields (CrsCod,FieldName,NumLines,Visibility) VALUES ('%ld','%s','%u','%u')",
sprintf (Query,"INSERT INTO crs_record_fields"
" (CrsCod,FieldName,NumLines,Visibility)"
" VALUES ('%ld','%s','%u','%u')",
Gbl.CurrentCrs.Crs.CrsCod,
Gbl.CurrentCrs.Records.Field.Name,Gbl.CurrentCrs.Records.Field.NumLines,(unsigned) Gbl.CurrentCrs.Records.Field.Visibility);
Gbl.CurrentCrs.Records.Field.Name,
Gbl.CurrentCrs.Records.Field.NumLines,
(unsigned) Gbl.CurrentCrs.Records.Field.Visibility);
DB_QueryINSERT (Query,"can not create field of record");
/***** Write mensaje of éxito *****/
@ -1698,7 +1702,9 @@ void Rec_UpdateCrsRecord (long UsrCod)
/***** Insert text field of record course *****/
sprintf (Query,"INSERT INTO crs_records (FieldCod,UsrCod,Txt)"
" VALUES ('%ld','%ld','%s')",
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod,UsrCod,Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Text);
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod,
UsrCod,
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Text);
DB_QueryINSERT (Query,"can not create field of record");
}
}

View File

@ -498,7 +498,7 @@ void Usr_GetUsrDataFromUsrCod (struct UsrData *UsrDat)
if (sscanf (row[26],"%u",&UsrDat->Prefs.SideCols) == 1)
{
if (UsrDat->Prefs.SideCols > Lay_SHOW_BOTH_COLUMNS)
UsrDat->Prefs.SideCols = Lay_SHOW_BOTH_COLUMNS; // Show both side columns
UsrDat->Prefs.SideCols = Cfg_DEFAULT_COLUMNS;
}
else
UsrDat->Prefs.SideCols = Cfg_DEFAULT_COLUMNS;