mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-28 04:23:35 +02:00
Version19.246.3
This commit is contained in:
parent
27bbe07260
commit
b96c575778
|
@ -557,10 +557,11 @@ 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.246.2 (2020-05-25)"
|
#define Log_PLATFORM_VERSION "SWAD 19.246.3 (2020-05-25)"
|
||||||
#define CSS_FILE "swad19.238.2.css"
|
#define CSS_FILE "swad19.238.2.css"
|
||||||
#define JS_FILE "swad19.246.1.js"
|
#define JS_FILE "swad19.246.1.js"
|
||||||
/*
|
/*
|
||||||
|
Version 19.246.3: May 25, 2020 Fixed bug in notices. (302529 lines)
|
||||||
Version 19.246.2: May 25, 2020 Links to edition of tags in test and test configuration. (302518 lines)
|
Version 19.246.2: May 25, 2020 Links to edition of tags in test and test configuration. (302518 lines)
|
||||||
Version 19.246.1: May 25, 2020 Removed unused JavaScript code. (302515 lines)
|
Version 19.246.1: May 25, 2020 Removed unused JavaScript code. (302515 lines)
|
||||||
Version 19.246: May 24, 2020 Fixed issue answering exam prints: when answer is been sent, button to send exam is disabled. (302527 lines)
|
Version 19.246: May 24, 2020 Fixed issue answering exam prints: when answer is been sent, button to send exam is disabled. (302527 lines)
|
||||||
|
|
|
@ -437,10 +437,19 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing,long HighlightNotCod)
|
||||||
/* Get the content (row[3]) and insert links */
|
/* Get the content (row[3]) and insert links */
|
||||||
Str_Copy (Content,row[3],
|
Str_Copy (Content,row[3],
|
||||||
Cns_MAX_BYTES_TEXT);
|
Cns_MAX_BYTES_TEXT);
|
||||||
Str_InsertLinks (Content,Cns_MAX_BYTES_TEXT,
|
|
||||||
Not_MaxCharsURLOnScreen[TypeNoticesListing]);
|
/* Inserting links is incompatible with limiting the length
|
||||||
if (TypeNoticesListing == Not_LIST_BRIEF_NOTICES)
|
==> don't insert links when limiting length */
|
||||||
Str_LimitLengthHTMLStr (Content,Not_MAX_CHARS_ON_NOTICE);
|
switch (TypeNoticesListing)
|
||||||
|
{
|
||||||
|
case Not_LIST_BRIEF_NOTICES:
|
||||||
|
Str_LimitLengthHTMLStr (Content,Not_MAX_CHARS_ON_NOTICE);
|
||||||
|
break;
|
||||||
|
case Not_LIST_FULL_NOTICES:
|
||||||
|
Str_InsertLinks (Content,Cns_MAX_BYTES_TEXT,
|
||||||
|
Not_MaxCharsURLOnScreen[TypeNoticesListing]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Get status of the notice (row[4]) */
|
/* Get status of the notice (row[4]) */
|
||||||
Status = Not_OBSOLETE_NOTICE;
|
Status = Not_OBSOLETE_NOTICE;
|
||||||
|
@ -778,6 +787,8 @@ void Not_GetSummaryAndContentNotice (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
||||||
// TODO: Do only direct copy when a Subject of type VARCHAR(255) is available
|
// TODO: Do only direct copy when a Subject of type VARCHAR(255) is available
|
||||||
if (strlen (row[0]) > Ntf_MAX_BYTES_SUMMARY)
|
if (strlen (row[0]) > Ntf_MAX_BYTES_SUMMARY)
|
||||||
{
|
{
|
||||||
|
/* Inserting links is incompatible with limiting the length
|
||||||
|
==> don't insert links */
|
||||||
strncpy (SummaryStr,row[0],
|
strncpy (SummaryStr,row[0],
|
||||||
Ntf_MAX_BYTES_SUMMARY);
|
Ntf_MAX_BYTES_SUMMARY);
|
||||||
SummaryStr[Ntf_MAX_BYTES_SUMMARY] = '\0';
|
SummaryStr[Ntf_MAX_BYTES_SUMMARY] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user