mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-18 14:35:46 +02:00
Version19.136.1
This commit is contained in:
parent
a1be6c4aad
commit
30966b4471
|
@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.136 (2020-02-27)"
|
#define Log_PLATFORM_VERSION "SWAD 19.136.1 (2020-02-29)"
|
||||||
#define CSS_FILE "swad19.136.css"
|
#define CSS_FILE "swad19.136.css"
|
||||||
#define JS_FILE "swad19.91.1.js"
|
#define JS_FILE "swad19.91.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -523,6 +523,7 @@ Param
|
||||||
// TODO: Miguel Damas: por defecto, marcar "Permitir que los profesores..." en los test (que ya esté marcado en lugar de desmarcado)
|
// TODO: Miguel Damas: por defecto, marcar "Permitir que los profesores..." en los test (que ya esté marcado en lugar de desmarcado)
|
||||||
// TODO: Si el alumno ha marcado "Permitir que los profesores...", entonces pedir confirmación al pulsar el botón azul, para evitar que se envíe por error antes de tiempo
|
// TODO: Si el alumno ha marcado "Permitir que los profesores...", entonces pedir confirmación al pulsar el botón azul, para evitar que se envíe por error antes de tiempo
|
||||||
|
|
||||||
|
Version 19.136.1: Feb 29, 2020 Fixed bugs in course program. (282301 lines)
|
||||||
Version 19.136: Feb 27, 2020 Indent items in course program. (282292 lines)
|
Version 19.136: Feb 27, 2020 Indent items in course program. (282292 lines)
|
||||||
3 changes necessary in database:
|
3 changes necessary in database:
|
||||||
DROP INDEX CrsCod ON prg_items;
|
DROP INDEX CrsCod ON prg_items;
|
||||||
|
|
|
@ -1345,12 +1345,20 @@ static unsigned Prg_GetNextIndexNotChild (const struct ProgramItem *Item)
|
||||||
|
|
||||||
static void Prg_MoveItemAndChildrenToRight (unsigned Index,unsigned NextIndex)
|
static void Prg_MoveItemAndChildrenToRight (unsigned Index,unsigned NextIndex)
|
||||||
{
|
{
|
||||||
DB_QueryUPDATE ("can not update items",
|
if (NextIndex == 0) // At the end, no more not-children items
|
||||||
"UPDATE prg_items SET Level=Level+1"
|
DB_QueryUPDATE ("can not move to right (ident)",
|
||||||
" WHERE CrsCod=%ld"
|
"UPDATE prg_items SET Level=Level+1"
|
||||||
" AND ItmInd>=%u AND ItmInd<%u",
|
" WHERE CrsCod=%ld"
|
||||||
Gbl.Hierarchy.Crs.CrsCod,
|
" AND ItmInd>=%u",
|
||||||
Index,NextIndex);
|
Gbl.Hierarchy.Crs.CrsCod,
|
||||||
|
Index);
|
||||||
|
else
|
||||||
|
DB_QueryUPDATE ("can not move to right (ident)",
|
||||||
|
"UPDATE prg_items SET Level=Level+1"
|
||||||
|
" WHERE CrsCod=%ld"
|
||||||
|
" AND ItmInd>=%u AND ItmInd<%u",
|
||||||
|
Gbl.Hierarchy.Crs.CrsCod,
|
||||||
|
Index,NextIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user