Version 22.39.5: Oct 03, 2022 Fixed bug in edition of course program.

This commit is contained in:
acanas 2022-10-03 23:41:58 +02:00
parent 695ab5e9cf
commit 4d9d5e7392
2 changed files with 13 additions and 15 deletions

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 22.39.4 (2022-10-03)"
#define Log_PLATFORM_VERSION "SWAD 22.39.5 (2022-10-03)"
#define CSS_FILE "swad22.35.css"
#define JS_FILE "swad21.100.js"
/*
Version 22.39.5: Oct 03, 2022 Fixed bug in edition of course program. (332513 lines)
Version 22.39.4: Oct 03, 2022 Fixed layout issues in projects. (332515 lines)
Version 22.39.3: Oct 03, 2022 Code refactoring in attendance events. (332519 lines)
Version 22.39.2: Oct 03, 2022 Changes in dialog to reset an attendance event. (332520 lines)

View File

@ -149,7 +149,8 @@ static bool Prg_CheckIfAnyHigherLevelIsHidden (unsigned CurrentLevel);
static void Prg_PutFormsToRemEditOneItem (Prg_ListingType_t ListingType,
unsigned NumItem,
struct Prg_Item *Item);
struct Prg_Item *Item,
bool HighlightItem);
static bool Prg_CheckIfMoveUpIsAllowed (unsigned NumItem);
static bool Prg_CheckIfMoveDownIsAllowed (unsigned NumItem);
static bool Prg_CheckIfMoveLeftIsAllowed (unsigned NumItem);
@ -551,7 +552,7 @@ static void Prg_WriteRowItem (Prg_ListingType_t ListingType,
{
HTM_TD_Begin ("rowspan=\"2\" class=\"PRG_COL1 LT %s\"",
The_GetColorRows ());
Prg_PutFormsToRemEditOneItem (ListingType,NumItem,Item);
Prg_PutFormsToRemEditOneItem (ListingType,NumItem,Item,HighlightItem);
HTM_TD_End ();
}
@ -978,7 +979,8 @@ static bool Prg_CheckIfAnyHigherLevelIsHidden (unsigned CurrentLevel)
static void Prg_PutFormsToRemEditOneItem (Prg_ListingType_t ListingType,
unsigned NumItem,
struct Prg_Item *Item)
struct Prg_Item *Item,
bool HighlightItem)
{
extern const char *Txt_Movement_not_allowed;
static Act_Action_t ActionHideUnhide[2] =
@ -1005,17 +1007,12 @@ static void Prg_PutFormsToRemEditOneItem (Prg_ListingType_t ListingType,
Item->Hierarchy.Hidden);
/***** Icon to edit program item *****/
switch (ListingType)
{
case Prg_FORM_EDIT_ITEM:
Ico_PutContextualIconToView (ActSeePrgItm,Prg_ITEM_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
break;
default:
Ico_PutContextualIconToEdit (ActFrmChgPrgItm,Prg_ITEM_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
break;
}
if (ListingType == Prg_FORM_EDIT_ITEM && HighlightItem)
Ico_PutContextualIconToView (ActSeePrgItm,Prg_ITEM_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
else
Ico_PutContextualIconToEdit (ActFrmChgPrgItm,Prg_ITEM_SECTION_ID,
Prg_PutParamItmCod,&Item->Hierarchy.ItmCod);
/***** Icon to add a new child item inside this item *****/
Ico_PutContextualIconToAdd (ActFrmNewPrgItm,Prg_ITEM_SECTION_ID,